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_historical(self):
with pytest.raises(NotSupported):
super().test_get_fuel_mix_historical()
@pytest.mark.skip(reason="Not Applicable")
@pytest.mark.skip(reason="Not Applicable")
@pytest.mark.skip(reason="Not Applicable")
[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")
@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_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")
"""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")
"""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()