Skip to content

Commit 8fe3e89

Browse files
committed
change test to use xls on disk
1 parent b43c866 commit 8fe3e89

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

tests/plate_simulation/runtest/sweep_test.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
# (see LICENSE file at the root of this source code package). '
88
# '
99
# '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
10-
from io import BytesIO
1110

1211
from geoh5py import Workspace
1312
from geoh5py.groups import SimPEGGroup
@@ -105,10 +104,6 @@ def test_sweep(tmp_path):
105104
n = len(list(workdir.glob("*.geoh5")))
106105
assert n == 6
107106

108-
# Check that the summary file was created and has the expected number of rows
109-
with Workspace(tmp_path / "test.geoh5") as ws:
110-
file_data = ws.get_entity("summary.xlsx")[0]
111-
blob = BytesIO(file_data.file_bytes)
112-
xls = read_excel(blob)
107+
xls = read_excel(tmp_path / "summary.xlsx")
113108

114109
assert len(xls) == 6

0 commit comments

Comments
 (0)