Skip to content

Commit

Permalink
Edit test
Browse files Browse the repository at this point in the history
  • Loading branch information
koopmant committed Dec 18, 2024
1 parent 583705c commit 642f4c3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/tests/challenges_tests/test_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ def test_challenge_budget_alert_email(settings):

# Next budget alert threshold exceeded
assert len(mail.outbox) != 0
assert (
mail.outbox[0].subject
== "[testserver] [test] 90% Budget Consumed Alert"
)


@pytest.mark.django_db
Expand All @@ -214,5 +218,7 @@ def test_challenge_budget_alert_no_budget():
compute_cost_euro_millicents=1,
time_limit=60,
)
assert len(mail.outbox) == 0
update_compute_costs_and_storage_size()
assert len(mail.outbox) != 0
assert "Budget Consumed Alert" in mail.outbox[0].subject

0 comments on commit 642f4c3

Please sign in to comment.