Skip to content

Commit

Permalink
setup function scoped fixture to compress before each test. Scope to …
Browse files Browse the repository at this point in the history
…function to be complient with db fixture
  • Loading branch information
vincentporte committed Dec 17, 2024
1 parent e3d41b2 commit 31f5947
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lacommunaute/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import pytest
from django.core.management import call_command


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

0 comments on commit 31f5947

Please sign in to comment.