Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Nov 5, 2024
1 parent ae05829 commit 5527de9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down Expand Up @@ -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"""

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 5527de9

Please sign in to comment.