Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Commit

Permalink
skip test if no campaign to cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
skoudoro committed Jan 9, 2022
1 parent 5538646 commit b8dc4a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mailerlite/tests/test_campaign.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ def test_cancel_send_campaign(header):

if campaign_obj.count('outbox'):
res = campaign_obj.all(status='outbox', limit=5)
if not res:
pytest.skip("No campaign found with outbox status")
assert res[0].status == 'outbox'
code, res_2 = campaign_obj.cancel(res[0].id)
assert code == 200
Expand Down

0 comments on commit b8dc4a3

Please sign in to comment.