Test Ercot Api

Contents

Test Ercot Api#

Module Contents#

Classes Summary#

TestErcotAPI

Attributes Summary#

api_vcr

Contents#

test_ercot_api.api_vcr[source]#
class test_ercot_api.TestErcotAPI[source]#

Bases: gridstatus.tests.base_test_iso.TestHelperMixin

Attributes

expected_shadow_prices_dam_columns

[‘Interval Start’, ‘Interval End’, ‘Constraint ID’, ‘Constraint Name’, ‘Contingency Name’, ‘Limiting Facility’, ‘Constraint Limit’, ‘Constraint Value’, ‘Violation Amount’, ‘Shadow Price’, ‘From Station’, ‘To Station’, ‘From Station kV’, ‘To Station kV’]

expected_shadow_prices_sced_columns

[‘Interval Start’, ‘Interval End’, ‘SCED Timestamp’, ‘Constraint ID’, ‘Constraint Name’, ‘Contingency Name’, ‘Limiting Facility’, ‘Shadow Price’, ‘Max Shadow Price’, ‘Limit’, ‘Value’, ‘Violated MW’, ‘From Station’, ‘To Station’, ‘From Station kV’, ‘To Station kV’, ‘CCT Status’]

Methods

setup_class

test_get_as_plan_before_ecrs

test_get_as_plan_historical_date

test_get_as_plan_historical_date_range

test_get_as_plan_today_or_latest

test_get_as_prices_historical_date

test_get_as_prices_historical_date_range

test_get_as_prices_today_or_latest

test_get_as_reports_dst_end

test_get_as_reports_full_columns

test_get_as_reports_historical_date

test_get_as_reports_historical_date_range

test_get_as_reports_today_or_latest_raises_error

test_get_dam_load_and_gen_60_day_resources_as_offers

test_get_dam_load_and_gen_60_day_resources_as_offers_repeated_offers

Tests a problematic date where one resource has repeated offers for a

test_get_endpoints_map

test_get_historical_data

test_get_hourly_resource_outage_capacity_historical_date

test_get_hourly_resource_outage_capacity_historical_date_range

test_get_hourly_resource_outage_capacity_today_or_latest

test_get_indicative_lmp_by_settlement_point

test_get_lmp_by_bus_dam_dst_end

test_get_lmp_by_bus_dam_dst_start

test_get_lmp_by_bus_dam_historical

test_get_lmp_by_bus_dam_historical_range

test_get_lmp_by_bus_dam_today_and_latest

test_get_lmp_by_bus_historical_date

test_get_lmp_by_bus_historical_date_range

test_get_lmp_by_bus_latest

test_get_lmp_by_bus_today

test_get_lmp_by_settlement_point_historical_date

test_get_lmp_by_settlement_point_historical_date_range

test_get_lmp_by_settlement_point_today_or_latest

test_get_shadow_prices_dam_historical

test_get_shadow_prices_dam_historical_range

test_get_shadow_prices_dam_today_and_latest

test_get_shadow_prices_sced_historical

test_get_shadow_prices_sced_historical_range

test_get_shadow_prices_sced_today_and_latest

test_get_solar_actual_and_forecast_by_geographical_region_hourly_date_range

test_get_solar_actual_and_forecast_by_geographical_region_hourly_latest

test_get_solar_actual_and_forecast_by_geographical_region_hourly_today

test_get_solar_actual_and_forecast_hourly_date_range

test_get_solar_actual_and_forecast_hourly_latest

test_get_solar_actual_and_forecast_hourly_today

test_get_spp_day_ahead_hourly_historical_date_range

test_get_spp_real_time_15_min_historical_date_range

test_get_wind_actual_and_forecast_by_geographical_region_hourly_date_range

test_get_wind_actual_and_forecast_by_geographical_region_hourly_latest

test_get_wind_actual_and_forecast_by_geographical_region_hourly_today

test_get_wind_actual_and_forecast_hourly_date_range

test_get_wind_actual_and_forecast_hourly_latest

test_get_wind_actual_and_forecast_hourly_today

test_handle_end_date

test_hit_ercot_api

First we test that entering a bad endpoint results in a keyerror

classmethod setup_class()[source]#
test_get_as_plan_before_ecrs()[source]#
test_get_as_plan_historical_date()[source]#
test_get_as_plan_historical_date_range()[source]#
test_get_as_plan_today_or_latest()[source]#
test_get_as_prices_historical_date()[source]#
test_get_as_prices_historical_date_range()[source]#
test_get_as_prices_today_or_latest()[source]#
test_get_as_reports_dst_end()[source]#
test_get_as_reports_full_columns()[source]#
test_get_as_reports_historical_date()[source]#
test_get_as_reports_historical_date_range()[source]#
test_get_as_reports_today_or_latest_raises_error()[source]#
test_get_dam_load_and_gen_60_day_resources_as_offers()[source]#
test_get_dam_load_and_gen_60_day_resources_as_offers_repeated_offers()[source]#

Tests a problematic date where one resource has repeated offers for a single service on a single interval

test_get_endpoints_map()[source]#
test_get_historical_data()[source]#
test_get_hourly_resource_outage_capacity_historical_date()[source]#
test_get_hourly_resource_outage_capacity_historical_date_range()[source]#
test_get_hourly_resource_outage_capacity_today_or_latest()[source]#
test_get_indicative_lmp_by_settlement_point(date, end)[source]#
test_get_lmp_by_bus_dam_dst_end()[source]#
test_get_lmp_by_bus_dam_dst_start()[source]#
test_get_lmp_by_bus_dam_historical()[source]#
test_get_lmp_by_bus_dam_historical_range()[source]#
test_get_lmp_by_bus_dam_today_and_latest()[source]#
test_get_lmp_by_bus_historical_date()[source]#
test_get_lmp_by_bus_historical_date_range()[source]#
test_get_lmp_by_bus_latest()[source]#
test_get_lmp_by_bus_today()[source]#
test_get_lmp_by_settlement_point_historical_date()[source]#
test_get_lmp_by_settlement_point_historical_date_range()[source]#
test_get_lmp_by_settlement_point_today_or_latest()[source]#
test_get_shadow_prices_dam_historical()[source]#
test_get_shadow_prices_dam_historical_range()[source]#
test_get_shadow_prices_dam_today_and_latest()[source]#
test_get_shadow_prices_sced_historical()[source]#
test_get_shadow_prices_sced_historical_range()[source]#
test_get_shadow_prices_sced_today_and_latest()[source]#
test_get_solar_actual_and_forecast_by_geographical_region_hourly_date_range()[source]#
test_get_solar_actual_and_forecast_by_geographical_region_hourly_latest()[source]#
test_get_solar_actual_and_forecast_by_geographical_region_hourly_today()[source]#
test_get_solar_actual_and_forecast_hourly_date_range()[source]#
test_get_solar_actual_and_forecast_hourly_latest()[source]#
test_get_solar_actual_and_forecast_hourly_today()[source]#
test_get_spp_day_ahead_hourly_historical_date_range()[source]#
test_get_spp_real_time_15_min_historical_date_range()[source]#
test_get_wind_actual_and_forecast_by_geographical_region_hourly_date_range()[source]#
test_get_wind_actual_and_forecast_by_geographical_region_hourly_latest()[source]#
test_get_wind_actual_and_forecast_by_geographical_region_hourly_today()[source]#
test_get_wind_actual_and_forecast_hourly_date_range()[source]#
test_get_wind_actual_and_forecast_hourly_latest()[source]#
test_get_wind_actual_and_forecast_hourly_today()[source]#
test_handle_end_date()[source]#
test_hit_ercot_api()[source]#

First we test that entering a bad endpoint results in a keyerror