Skip to content

Commit

Permalink
fix: Freeze time for tests to ensure dependability (#3627)
Browse files Browse the repository at this point in the history
  • Loading branch information
zachaysan authored Mar 15, 2024
1 parent 046ffe3 commit 2f647f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/tests/unit/organisations/test_unit_organisations_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ def test_send_org_subscription_cancelled_alert(db: None, mocker: MockerFixture)
)


@pytest.mark.freeze_time("2023-01-19T09:09:47.325132+00:00")
def test_handle_api_usage_notifications_below_100(
mocker: MockerFixture,
organisation: Organisation,
Expand Down Expand Up @@ -313,6 +314,7 @@ def test_handle_api_usage_notifications_below_100(
assert OranisationAPIUsageNotification.objects.first() == api_usage_notification


@pytest.mark.freeze_time("2023-01-19T09:09:47.325132+00:00")
def test_handle_api_usage_notifications_above_100(
mocker: MockerFixture,
organisation: Organisation,
Expand Down

0 comments on commit 2f647f2

Please sign in to comment.