Skip to content

Commit b896226

Browse files
committed
..
1 parent a74a992 commit b896226

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_simulate.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ def test_remove_working_dir(petab_problem):
5555
assert Path(simulator.working_dir).is_dir()
5656
# A user-specified working directory should not be removed unless
5757
# `force=True`.
58-
simulator.remove_working_dir()
58+
with pytest.warns(
59+
UserWarning, match="working directories are not removed"
60+
):
61+
simulator.remove_working_dir()
5962
# The user-specified working directory is not removed without `force=True`
6063
assert Path(simulator.working_dir).is_dir()
6164
simulator.remove_working_dir(force=True)

0 commit comments

Comments
 (0)