Skip to content

Commit 477f58c

Browse files
committed
visit now needed in environment as it is used by url_path_for function and cannot be empty
1 parent c1f06ab commit 477f58c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/client/test_context.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def test_tomography_context_add_tomo_tilt(mock_post, mock_get, tmp_path):
2525
sources=[tmp_path],
2626
default_destinations={tmp_path: str(tmp_path)},
2727
instrument_name="",
28+
visit="test",
2829
)
2930
context = TomographyContext("tomo", tmp_path)
3031
(tmp_path / "Position_1_001_[30.0]_date_time_fractions.tiff").touch()
@@ -80,6 +81,7 @@ def test_tomography_context_add_tomo_tilt_out_of_order(mock_post, mock_get, tmp_
8081
sources=[tmp_path],
8182
default_destinations={tmp_path: str(tmp_path)},
8283
instrument_name="",
84+
visit="test",
8385
)
8486
context = TomographyContext("tomo", tmp_path)
8587
(tmp_path / "Position_1_001_[30.0]_date_time_fractions.tiff").touch()
@@ -163,6 +165,7 @@ def test_tomography_context_add_tomo_tilt_delayed_tilt(mock_post, mock_get, tmp_
163165
sources=[tmp_path],
164166
default_destinations={tmp_path: str(tmp_path)},
165167
instrument_name="",
168+
visit="test",
166169
)
167170
context = TomographyContext("tomo", tmp_path)
168171
(tmp_path / "Position_1_001_[30.0]_date_time_fractions.tiff").touch()
@@ -226,6 +229,7 @@ def test_setting_tilt_series_size_and_completion_from_mdoc_parsing(
226229
sources=[tmp_path],
227230
default_destinations={tmp_path: str(tmp_path)},
228231
instrument_name="",
232+
visit="test",
229233
)
230234
context = TomographyContext("tomo", tmp_path)
231235
assert len(context._tilt_series_sizes) == 0

0 commit comments

Comments
 (0)