test_ercot_api
=========================================

.. py:module:: gridstatus.tests.test_ercot_api


Module Contents
---------------

Classes Summary
~~~~~~~~~~~~~~~

.. autoapisummary::

   gridstatus.tests.test_ercot_api.TestErcotAPI





Contents
~~~~~~~~~~~~~~~~~~~
.. py:class:: TestErcotAPI

   Bases: :py:obj:`gridstatus.tests.base_test_iso.TestHelperMixin`


   **Attributes**

   .. list-table::
      :widths: 15 85
      :header-rows: 0

      * - **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**

   .. autoapisummary::
      :nosignatures:

      gridstatus.tests.test_ercot_api.TestErcotAPI.setup_class
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_as_plan_before_ecrs
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_as_plan_historical_date
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_as_plan_historical_date_range
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_as_plan_today_or_latest
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_as_prices_historical_date
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_as_prices_historical_date_range
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_as_prices_today_or_latest
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_as_reports_historical_date
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_as_reports_historical_date_range
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_as_reports_today_or_latest_raises_error
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_endpoints_map
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_historical_data
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_hourly_resource_outage_capacity_historical_date
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_hourly_resource_outage_capacity_historical_date_range
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_hourly_resource_outage_capacity_today_or_latest
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_hourly_solar_report_historical_date_range
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_hourly_solar_report_latest
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_hourly_solar_report_today
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_hourly_wind_report_historical_date_range
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_hourly_wind_report_latest
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_hourly_wind_report_today
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_lmp_by_bus_dam_historical
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_lmp_by_bus_dam_historical_range
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_lmp_by_bus_dam_today_and_latest
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_lmp_by_bus_historical_date
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_lmp_by_bus_historical_date_range
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_lmp_by_bus_latest
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_lmp_by_bus_today
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_lmp_by_settlement_point_historical_date
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_lmp_by_settlement_point_historical_date_range
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_lmp_by_settlement_point_today_or_latest
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_shadow_prices_dam_historical
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_shadow_prices_dam_historical_range
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_shadow_prices_dam_today_and_latest
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_shadow_prices_sced_historical
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_shadow_prices_sced_historical_range
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_shadow_prices_sced_today_and_latest
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_spp_day_ahead_hourly_historical_date_range
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_get_spp_real_time_15_min_historical_date_range
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_handle_end_date
      gridstatus.tests.test_ercot_api.TestErcotAPI.test_hit_ercot_api

   .. py:method:: setup_class()
      :classmethod:


   .. py:method:: test_get_as_plan_before_ecrs()


   .. py:method:: test_get_as_plan_historical_date()


   .. py:method:: test_get_as_plan_historical_date_range()


   .. py:method:: test_get_as_plan_today_or_latest()


   .. py:method:: test_get_as_prices_historical_date()


   .. py:method:: test_get_as_prices_historical_date_range()


   .. py:method:: test_get_as_prices_today_or_latest()


   .. py:method:: test_get_as_reports_historical_date()


   .. py:method:: test_get_as_reports_historical_date_range()


   .. py:method:: test_get_as_reports_today_or_latest_raises_error()


   .. py:method:: test_get_endpoints_map()


   .. py:method:: test_get_historical_data()


   .. py:method:: test_get_hourly_resource_outage_capacity_historical_date()


   .. py:method:: test_get_hourly_resource_outage_capacity_historical_date_range()


   .. py:method:: test_get_hourly_resource_outage_capacity_today_or_latest()


   .. py:method:: test_get_hourly_solar_report_historical_date_range()


   .. py:method:: test_get_hourly_solar_report_latest()


   .. py:method:: test_get_hourly_solar_report_today()


   .. py:method:: test_get_hourly_wind_report_historical_date_range()


   .. py:method:: test_get_hourly_wind_report_latest()


   .. py:method:: test_get_hourly_wind_report_today()


   .. py:method:: test_get_lmp_by_bus_dam_historical()


   .. py:method:: test_get_lmp_by_bus_dam_historical_range()


   .. py:method:: test_get_lmp_by_bus_dam_today_and_latest()


   .. py:method:: test_get_lmp_by_bus_historical_date()


   .. py:method:: test_get_lmp_by_bus_historical_date_range()


   .. py:method:: test_get_lmp_by_bus_latest()


   .. py:method:: test_get_lmp_by_bus_today()


   .. py:method:: test_get_lmp_by_settlement_point_historical_date()


   .. py:method:: test_get_lmp_by_settlement_point_historical_date_range()


   .. py:method:: test_get_lmp_by_settlement_point_today_or_latest()


   .. py:method:: test_get_shadow_prices_dam_historical()


   .. py:method:: test_get_shadow_prices_dam_historical_range()


   .. py:method:: test_get_shadow_prices_dam_today_and_latest()


   .. py:method:: test_get_shadow_prices_sced_historical()


   .. py:method:: test_get_shadow_prices_sced_historical_range()


   .. py:method:: test_get_shadow_prices_sced_today_and_latest()


   .. py:method:: test_get_spp_day_ahead_hourly_historical_date_range()


   .. py:method:: test_get_spp_real_time_15_min_historical_date_range()


   .. py:method:: test_handle_end_date()


   .. py:method:: test_hit_ercot_api()

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



