Skip to content

Commit

Permalink
is this test slow on it's own?
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarton committed Dec 16, 2024
1 parent fbe8cc7 commit 8ac01c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-docker-compose-test-on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Run tests
run: |
docker compose exec --env CONSOLE_LOG_LEVEL=DEBUG django pytest -v -s
docker compose exec --env CONSOLE_LOG_LEVEL=DEBUG django pytest -v -s epilepsy12/tests/common_view_functions_tests/aggregate_by_tests/test_update_kpiaggregation_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ def test_update_kpi_aggregation_model_all_levels(
):
print(f"!! {datetime.now().strftime('%H:%M:%S')} START TEST: {abstraction_level} !!")

print(f"!! {datetime.now().strftime('%H:%M:%S')} BEFORE ANALYZE: {abstraction_level} !!")
with connection.cursor() as cursor:
cursor.execute("ANALYZE")
print(f"!! {datetime.now().strftime('%H:%M:%S')} AFTER ANALYZE: {abstraction_level} !!")
# print(f"!! {datetime.now().strftime('%H:%M:%S')} BEFORE ANALYZE: {abstraction_level} !!")
# with connection.cursor() as cursor:
# cursor.execute("ANALYZE")
# print(f"!! {datetime.now().strftime('%H:%M:%S')} AFTER ANALYZE: {abstraction_level} !!")


"""Testing the `update_kpi_aggregation_model` fn.
Expand Down

0 comments on commit 8ac01c9

Please sign in to comment.