Skip to content

Commit

Permalink
Created test that makes sure a pipeline instance can be called more t…
Browse files Browse the repository at this point in the history
…han once
  • Loading branch information
AlexejPenner committed Feb 2, 2022
1 parent 2af0271 commit cbdf87f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/unit/pipelines/test_base_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,3 +240,16 @@ def test_setting_pipeline_parameter_name_when_initializing_pipeline(
assert step_instance.pipeline_parameter_name is None
one_step_pipeline(step_instance)
assert step_instance.pipeline_parameter_name == "step_"


def test_calling_a_pipeline_twice_raises_no_exception(
one_step_pipeline, empty_step
):
"""Tests that calling one pipeline instance twice does not raise
a StepInterfaceError exception."""

pipeline_instance = one_step_pipeline(empty_step())

with does_not_raise():
pipeline_instance.run()
pipeline_instance.run()

0 comments on commit cbdf87f

Please sign in to comment.