Skip to content

Commit

Permalink
Run compress before to run the test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
francoisfreitag committed Dec 18, 2024
1 parent 31f5947 commit 0632391
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lacommunaute/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from django.core.management import call_command


@pytest.fixture(scope="function", autouse=True)
def run_compress(db):
call_command("compress", "--force")
@pytest.fixture(scope="session", autouse=True)
def run_compress(django_db_setup, django_db_blocker):
with django_db_blocker.unblock():
call_command("compress", "--force")

0 comments on commit 0632391

Please sign in to comment.