From 455548bbc4d8eb76c1f58b28cfd4adc1ebbd9322 Mon Sep 17 00:00:00 2001 From: Anish Date: Tue, 6 Feb 2024 09:48:21 -0500 Subject: [PATCH] LRG pipelines pass by default --- test/test_lrg_2d.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/test/test_lrg_2d.py b/test/test_lrg_2d.py index f6b1d369..4c876a00 100644 --- a/test/test_lrg_2d.py +++ b/test/test_lrg_2d.py @@ -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: @@ -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: @@ -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