Skip to content

Commit

Permalink
TST: Remove print statements in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mferrera committed Nov 12, 2024
1 parent 7c82fb5 commit 88c8d45
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/test_units/test_dataio.py
Original file line number Diff line number Diff line change
Expand Up @@ -1168,21 +1168,20 @@ def test_ert_experiment_id_present_in_exported_metadata(
def test_ert_simulation_mode_present_in_generated_metadata(
fmurun_w_casemetadata, monkeypatch, globalconfig1, regsurf
):
"""Test that the ert experiment id has been set correctly
"""Test that the ert simulation mode has been set correctly
in the generated metadata"""

monkeypatch.chdir(fmurun_w_casemetadata)

edata = ExportData(config=globalconfig1, content="depth")
meta = edata.generate_metadata(regsurf)
print(meta["fmu"])
assert meta["fmu"]["ert"]["simulation_mode"] == "test_run"


def test_ert_simulation_mode_present_in_exported_metadata(
fmurun_w_casemetadata, monkeypatch, globalconfig1, regsurf
):
"""Test that the ert experiment id has been set correctly
"""Test that the ert simulation mode has been set correctly
in the exported metadata"""

monkeypatch.chdir(fmurun_w_casemetadata)
Expand All @@ -1191,7 +1190,6 @@ def test_ert_simulation_mode_present_in_exported_metadata(
out = Path(edata.export(regsurf))
with open(out.parent / f".{out.name}.yml", encoding="utf-8") as f:
export_meta = yaml.safe_load(f)
print(export_meta["fmu"])
assert export_meta["fmu"]["ert"]["simulation_mode"] == "test_run"


Expand Down

0 comments on commit 88c8d45

Please sign in to comment.