Skip to content

Commit

Permalink
Look for the correct flash message on failure (#16385)
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr committed Jun 11, 2021
1 parent c863044 commit 29b23be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/www/views/test_views_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,6 @@ def test_task_instance_clear(session, admin_client):
assert state == State.NONE


@pytest.mark.xfail(reason="until #15980 is merged")
def test_task_instance_clear_failure(admin_client):
rowid = '["12345"]' # F.A.B. crashes if the rowid is *too* invalid.
resp = admin_client.post(
Expand All @@ -624,7 +623,7 @@ def test_task_instance_clear_failure(admin_client):
follow_redirects=True,
)
assert resp.status_code == 200
check_content_in_response("Failed to clear state", resp)
check_content_in_response("Failed to clear task instances:", resp)


@pytest.mark.parametrize(
Expand Down

0 comments on commit 29b23be

Please sign in to comment.