Skip to content

Commit fc818a2

Browse files
Change tests assertions to reflect changes in error handling
1 parent f10b0a1 commit fc818a2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

tests/workflows/integration_tests/execution/test_workflow_with_detections_consensus_block.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from inference.core.env import WORKFLOWS_MAX_CONCURRENT_STEPS
66
from inference.core.managers.base import ModelManager
77
from inference.core.workflows.core_steps.common.entities import StepExecutionMode
8-
from inference.core.workflows.errors import RuntimeInputError, StepExecutionError
8+
from inference.core.workflows.errors import RuntimeInputError, StepExecutionError, ClientCausedStepExecutionError
99
from inference.core.workflows.execution_engine.core import ExecutionEngine
1010
from tests.workflows.integration_tests.execution.workflows_gallery_collector.decorators import (
1111
add_to_workflows_gallery,
@@ -273,7 +273,7 @@ def test_consensus_workflow_when_model_id_cannot_be_resolved_to_valid_model(
273273
)
274274

275275
# when
276-
with pytest.raises(StepExecutionError):
276+
with pytest.raises(ClientCausedStepExecutionError):
277277
_ = execution_engine.run(
278278
runtime_parameters={
279279
"image": crowd_image,

tests/workflows/integration_tests/execution/test_workflow_with_filtering.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from inference.core.workflows.core_steps.common.query_language.errors import (
99
EvaluationEngineError,
1010
)
11-
from inference.core.workflows.errors import RuntimeInputError, StepExecutionError
11+
from inference.core.workflows.errors import RuntimeInputError, StepExecutionError, ClientCausedStepExecutionError
1212
from inference.core.workflows.execution_engine.core import ExecutionEngine
1313
from tests.workflows.integration_tests.execution.workflows_gallery_collector.decorators import (
1414
add_to_workflows_gallery,
@@ -310,7 +310,7 @@ def test_filtering_workflow_when_model_id_cannot_be_resolved_to_valid_model(
310310
)
311311

312312
# when
313-
with pytest.raises(StepExecutionError):
313+
with pytest.raises(ClientCausedStepExecutionError):
314314
_ = execution_engine.run(
315315
runtime_parameters={
316316
"image": crowd_image,

tests/workflows/integration_tests/execution/test_workflow_with_single_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from inference.core.env import WORKFLOWS_MAX_CONCURRENT_STEPS
66
from inference.core.managers.base import ModelManager
77
from inference.core.workflows.core_steps.common.entities import StepExecutionMode
8-
from inference.core.workflows.errors import RuntimeInputError, StepExecutionError
8+
from inference.core.workflows.errors import RuntimeInputError, StepExecutionError, ClientCausedStepExecutionError
99
from inference.core.workflows.execution_engine.core import ExecutionEngine
1010
from tests.workflows.integration_tests.execution.workflows_gallery_collector.decorators import (
1111
add_to_workflows_gallery,
@@ -332,7 +332,7 @@ def test_object_detection_workflow_when_model_id_cannot_be_resolved_to_valid_mod
332332
)
333333

334334
# when
335-
with pytest.raises(StepExecutionError):
335+
with pytest.raises(ClientCausedStepExecutionError):
336336
_ = execution_engine.run(
337337
runtime_parameters={
338338
"image": crowd_image,

0 commit comments

Comments
 (0)