Source code for gridstatus.tests.test_miso

import pytest

from gridstatus import MISO, NotSupported
from gridstatus.base import Markets
from gridstatus.tests.base_test_iso import BaseTestISO
from gridstatus.tests.decorators import with_markets


[docs]class TestMISO(BaseTestISO): iso = MISO() """get_fuel_mix""" @pytest.mark.skip(reason="Not Applicable")
[docs] def test_get_fuel_mix_date_or_start(self): pass
[docs] def test_get_fuel_mix_historical(self): with pytest.raises(NotSupported): super().test_get_fuel_mix_historical()
@pytest.mark.skip(reason="Not Applicable")
[docs] def test_get_fuel_mix_historical_with_date_range(self): pass
@pytest.mark.skip(reason="Not Applicable")
[docs] def test_range_two_days_with_day_start_endpoint(self): pass
@pytest.mark.skip(reason="Not Applicable")
[docs] def test_start_end_same_day(self): pass
[docs] def test_get_fuel_mix_today(self): with pytest.raises(NotSupported): super().test_get_fuel_mix_today()
"""get_lmp""" @pytest.mark.skip(reason="Not Applicable")
[docs] def test_lmp_date_range(self, markets=None): pass
@with_markets( Markets.REAL_TIME_5_MIN, Markets.DAY_AHEAD_HOURLY, )
[docs] def test_get_lmp_historical(self, market): with pytest.raises(NotSupported): super().test_get_lmp_historical(market)
@with_markets( Markets.REAL_TIME_5_MIN, Markets.DAY_AHEAD_HOURLY, )
[docs] def test_get_lmp_latest(self, market): super().test_get_lmp_latest(market)
[docs] def test_get_lmp_locations(self): data = self.iso.get_lmp( date="latest", market=Markets.REAL_TIME_5_MIN, locations=self.iso.hubs, ) assert set(data["Location"].unique()) == set(self.iso.hubs)
"""get_load"""
[docs] def test_get_load_historical(self): with pytest.raises(NotSupported): super().test_get_load_historical()
@pytest.mark.skip(reason="Not Applicable")
[docs] def test_get_load_historical_with_date_range(self): pass
"""get_load_forecast"""
[docs] def test_get_load_forecast_historical(self): with pytest.raises(NotSupported): super().test_get_load_forecast_historical()
@pytest.mark.skip(reason="Not Applicable")
[docs] def test_get_load_forecast_historical_with_date_range(self): pass
"""get_status"""
[docs] def test_get_status_latest(self): with pytest.raises(NotImplementedError): super().test_get_status_latest()
"""get_storage"""
[docs] def test_get_storage_historical(self): with pytest.raises(NotImplementedError): super().test_get_storage_historical()
[docs] def test_get_storage_today(self): with pytest.raises(NotImplementedError): super().test_get_storage_today()