diff --git a/nowcasting_datamodel/models/pv.py b/nowcasting_datamodel/models/pv.py index e53c1f61..0d5a2834 100644 --- a/nowcasting_datamodel/models/pv.py +++ b/nowcasting_datamodel/models/pv.py @@ -18,8 +18,8 @@ logger = logging.getLogger(__name__) pv_output = "pvoutput.org" -solar_sheffield_passiv = "solar_sheffield_passiv" -providers = [pv_output, solar_sheffield_passiv] +sheffield_solar_passiv = "sheffield_solar_passiv" +providers = [pv_output, sheffield_solar_passiv] ######## # 7. PV Metadata @@ -85,7 +85,7 @@ def to_orm(self) -> PVSystemSQL: orientation=self.orientation, status_interval_minutes=self.status_interval_minutes, correct_data=self.correct_data, - installed_capacity_kw=self.installed_capacity_kw + installed_capacity_kw=self.installed_capacity_kw, ) diff --git a/tests/read/test_read_pv.py b/tests/read/test_read_pv.py index b8ae1d62..e2f9a291 100644 --- a/tests/read/test_read_pv.py +++ b/tests/read/test_read_pv.py @@ -1,7 +1,13 @@ import logging from datetime import datetime -from nowcasting_datamodel.models import PVSystem, PVSystemSQL, PVYield, pv_output, solar_sheffield_passiv +from nowcasting_datamodel.models import ( + PVSystem, + PVSystemSQL, + PVYield, + pv_output, + sheffield_solar_passiv, +) from nowcasting_datamodel.read.read_pv import get_latest_pv_yield, get_pv_systems, get_pv_yield from nowcasting_datamodel.save import save_pv_system @@ -136,7 +142,7 @@ def test_read_pv_yield(db_session_pv, pv_yields_and_systems): def test_read_pv_yield_providers(db_session_pv, pv_yields_and_systems): assert len(get_pv_yield(session=db_session_pv, providers=[pv_output])) == 3 - assert len(get_pv_yield(session=db_session_pv, providers=[solar_sheffield_passiv])) == 0 + assert len(get_pv_yield(session=db_session_pv, providers=[sheffield_solar_passiv])) == 0 def test_read_pv_yield_correct_data(db_session_pv, pv_yields_and_systems):