File tree Expand file tree Collapse file tree
tests/plate_simulation/runtest Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88# '
99# '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
1010
11- import os
1211
1312from geoh5py import Workspace
1413from geoh5py .groups import SimPEGGroup
@@ -72,8 +71,7 @@ def setup_plate_sweep(workspace) -> SimPEGGroup:
7271
7372def 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 )
You can’t perform that action at this time.
0 commit comments