Skip to content

Commit 9030828

Browse files
committed
Modify test to check workdir auto-creation
1 parent 84c3717 commit 9030828

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/plate_simulation/runtest/sweep_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
# '
99
# '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
1010

11-
import os
1211

1312
from geoh5py import Workspace
1413
from geoh5py.groups import SimPEGGroup
@@ -72,8 +71,7 @@ def setup_plate_sweep(workspace) -> SimPEGGroup:
7271

7372
def test_sweep(tmp_path):
7473
workdir = tmp_path / "my_workdir"
75-
os.mkdir(workdir)
76-
assert workdir.exists()
74+
7775
with Workspace.create(tmp_path / "test.geoh5") as ws:
7876
plate_simulation = setup_plate_sweep(ws)
7977

@@ -95,6 +93,8 @@ def test_sweep(tmp_path):
9593
ifile.write_ui_json(name="plate_sweep.ui.json", path=tmp_path)
9694
PlateSweepDriver.start(tmp_path / "plate_sweep.ui.json")
9795

96+
assert workdir.exists()
97+
9898
with Workspace(tmp_path / "test.geoh5"):
9999
ifile = InputFile.read_ui_json(tmp_path / "plate_sweep.ui.json")
100100
ifile.set_data_value("background_count", 3)

0 commit comments

Comments
 (0)