Skip to content

Commit

Permalink
Adjust test to capture UserWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrivenaes committed Jan 20, 2023
1 parent a82f134 commit 5135b6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_units/test_prerealization_surfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ def test_preprocessed_with_rel_forcefolder_ok(rmssetup, rmsglobalconfig, regsurf
timedata=[[20240802, "moni"], [20200909, "base"]],
forcefolder="tmp",
)
with pytest.warns(UserWarning, match="The standard folder name is overrided"):
meta = edata.generate_metadata(regsurf)

meta = edata.generate_metadata(regsurf)
assert "preprocessed/tmp" in meta["file"]["relative_path"]

0 comments on commit 5135b6b

Please sign in to comment.