mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-10 00:03:24 +00:00
15 lines
364 B
Python
15 lines
364 B
Python
|
import pytest
|
||
|
from django.core.management import call_command
|
||
|
from django.utils.translation import activate
|
||
|
|
||
|
|
||
|
@pytest.fixture(scope="session")
|
||
|
def django_db_setup(django_db_setup, django_db_blocker):
|
||
|
with django_db_blocker.unblock():
|
||
|
call_command("setup")
|
||
|
|
||
|
|
||
|
@pytest.fixture(scope="session", autouse=True)
|
||
|
def set_default_language():
|
||
|
activate("fr")
|