Skip to content

Commit

Permalink
add waiting status to rerun test
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldcampbelljr committed Mar 13, 2024
1 parent e0cd85d commit 7a52dfd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/smoketests/test_other.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,14 @@ def test_pipestat_configured(self, prep_temp_pep_pipestat, cmd):


class TestLooperRerun:
@pytest.mark.parametrize(
"flags", [FLAGS[2], FLAGS[3]]
) # Waiting and Failed flags should work
@pytest.mark.parametrize("pipeline_name", ["example_pipestat_pipeline"])
def test_pipestat_rerun(self, prep_temp_pep_pipestat, pipeline_name):
"""Verify that checking works when multiple flags are created"""
def test_pipestat_rerun(self, prep_temp_pep_pipestat, pipeline_name, flags):
"""Verify that rerun works with either failed or waiting flags"""
tp = prep_temp_pep_pipestat
_make_flags(tp, FLAGS[2], pipeline_name)
_make_flags(tp, flags, pipeline_name)

x = ["rerun", "--looper-config", tp]
try:
Expand Down

0 comments on commit 7a52dfd

Please sign in to comment.