Skip to content

Commit

Permalink
Changed expected to expected_fh
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinzb56 committed Jan 22, 2025
1 parent f2dacd3 commit c1a9524
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tardis/io/configuration/tests/test_config_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ def test_from_config_dict(tardis_config_verysimple):


def test_config_hdf(hdf_file_path, tardis_config_verysimple):
expected = Configuration.from_config_dict(
expected_fh = Configuration.from_config_dict(
tardis_config_verysimple, validate=True, config_dirname="test"
)
expected.to_hdf(hdf_file_path, overwrite=True)
expected_fh.to_hdf(hdf_file_path, overwrite=True)
actual = pd.read_hdf(hdf_file_path, key="/simulation/config")
expected = expected.get_properties()["config"]
assert actual[0] == expected[0]
expected_fh = expected_fh.get_properties()["config"]
assert actual[0] == expected_fh[0]


def test_model_section_config(tardis_config_verysimple):
Expand Down

0 comments on commit c1a9524

Please sign in to comment.