Skip to content

Commit a0c2669

Browse files
committed
missing state
1 parent 8f372f6 commit a0c2669

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

services/director-v2/tests/unit/test_utils_computation.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,9 @@ def test_get_pipeline_state_from_task_states(
296296
]
297297

298298
pipeline_state: RunningState = get_pipeline_state_from_task_states(tasks)
299-
assert (
300-
pipeline_state == exp_pipeline_state
301-
), f"task states are: {task_states}, got {pipeline_state} instead of {exp_pipeline_state}"
299+
assert pipeline_state == exp_pipeline_state, (
300+
f"task states are: {task_states}, got {pipeline_state} instead of {exp_pipeline_state}"
301+
)
302302

303303

304304
@pytest.mark.parametrize(
@@ -315,7 +315,7 @@ def test_get_pipeline_state_from_task_states(
315315
],
316316
)
317317
def test_is_pipeline_running(state, exp: bool):
318-
assert (
319-
is_pipeline_running(state) is exp
320-
), f"pipeline in {state}, i.e. running state should be {exp}"
318+
assert is_pipeline_running(state) is exp, (
319+
f"pipeline in {state}, i.e. running state should be {exp}"
320+
)
321321
assert is_pipeline_stopped is not exp

0 commit comments

Comments
 (0)