Skip to content

Commit

Permalink
LRG pipelines pass by default
Browse files Browse the repository at this point in the history
  • Loading branch information
annshress committed Feb 6, 2024
1 parent 2bdb6f2 commit 455548b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/test_lrg_2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def fake_gen_zarr(file_path, input_fname):
x_no_api=True,
return_state=True,
)
assert state.is_failed()
assert state.is_completed(), "Flow failed"

response = {}
with open(mock_callback_data) as fd:
Expand Down Expand Up @@ -101,13 +101,11 @@ def fake_gen_zarr(file_path, input_fname):

state = lrg_2d_flow(
file_share="test",
input_dir="/test/input_files/lrg_ROI_pngs/Projects/Partial_Correct/",
input_dir="/test/input_files/lrg_ROI_pngs/Projects/",
x_no_api=True,
return_state=True,
)
assert (
state.is_failed()
) # Except for BRT, everything else should be failed (although partly failed)
assert state.is_completed(), "Flow failed"

response = {}
with open(mock_callback_data) as fd:
Expand All @@ -119,7 +117,7 @@ def fake_gen_zarr(file_path, input_fname):
for result in results:
if fails_for in result["primaryFilePath"]:
assert result["status"] == "error"
assert "Zarr generation" in result["message"]
assert "gen_zarr" in result["message"]
else:
assert result["status"] == "success"
assert result["message"] is None
Expand Down

0 comments on commit 455548b

Please sign in to comment.