From 5527de917eb2e7cc4d5ad4186331c010d25fe35f Mon Sep 17 00:00:00 2001 From: peterdudfield Date: Tue, 5 Nov 2024 11:39:41 +0000 Subject: [PATCH] fix --- tests/conftest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index a06a961..d0caccd 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -20,7 +20,7 @@ xr.set_options(keep_attrs=True) -@pytest.fixture() +@pytest.fixture(scope="session") def test_t0(): return pd.Timestamp.now(tz=None).floor(timedelta(minutes=30)) @@ -186,7 +186,7 @@ def sat_15_data(test_t0): return make_sat_data(test_t0, delay_mins=0, freq_mins=15) -@pytest.fixture(scope="session") +@pytest.fixture() def gsp_yields_and_systems(db_session, test_t0): """Create gsp yields and systems""" @@ -225,7 +225,7 @@ def gsp_yields_and_systems(db_session, test_t0): } -@pytest.fixture(scope="session") +@pytest.fixture() def me_latest(db_session): metric_values = make_fake_me_latest(session=db_session, model_name="pvnet_v2") db_session.add_all(metric_values)