Skip to content

Commit

Permalink
Remove tardis_ref_data fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
atharva-2001 committed Aug 21, 2024
1 parent 6ec1212 commit 4bdacd9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
11 changes: 0 additions & 11 deletions tardis/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,17 +165,6 @@ def tardis_snapshot_path(request):
os.path.expandvars(os.path.expanduser(tardis_snapshot_path))
)


@pytest.yield_fixture(scope="session")
def tardis_ref_data(tardis_ref_path, generate_reference):
if generate_reference:
mode = "w"
else:
mode = "r"
with pd.HDFStore(tardis_ref_path / "unit_test_data.h5", mode=mode) as store:
yield store


@pytest.fixture(scope="function")
def tardis_config_verysimple():
return yaml_load_file(
Expand Down
2 changes: 1 addition & 1 deletion tardis/gui/tests/test_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def config():

@pytest.fixture(scope="module")
def simulation_one_loop(
atomic_data_fname, config, tardis_ref_data, generate_reference
atomic_data_fname, config
):
config.atom_data = atomic_data_fname
config.montecarlo.iterations = 2
Expand Down

0 comments on commit 4bdacd9

Please sign in to comment.