Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix flaky test_backfill_monthly_metrics_for_site by freezing time #387

Merged
merged 1 commit into from
Jul 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions devsite/requirements/test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Shared testing requirements
pytest-freezegun==0.4.2
1 change: 1 addition & 0 deletions tests/test_backfill.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def backfill_test_data(db):
)


@pytest.mark.freeze_time('2019-09-01 12:00:00')
def test_backfill_monthly_metrics_for_site(backfill_test_data):
"""Simple coverage and data validation check for the function under test
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ deps =
hawthorn_multisite: -r{toxinidir}/devsite/requirements/hawthorn_multisite.txt
juniper_community: -r{toxinidir}/devsite/requirements/juniper_community.txt
juniper_multisite: -r{toxinidir}/devsite/requirements/juniper_multisite.txt
-r{toxinidir}/devsite/requirements/test.txt

whitelist_externals =
git
Expand Down