mirror of
https://github.com/Crocmagnon/charasheet.git
synced 2024-11-05 06:13:55 +01:00
24 lines
546 B
Python
24 lines
546 B
Python
import pytest
|
|
from django.core.management import call_command
|
|
|
|
|
|
@pytest.fixture(scope="session", autouse=True)
|
|
def collectstatic():
|
|
call_command("collectstatic", "--clear", "--noinput", "--verbosity=0")
|
|
|
|
|
|
@pytest.fixture
|
|
def firefox_options(firefox_options):
|
|
firefox_options.add_argument("-headless")
|
|
return firefox_options
|
|
|
|
|
|
@pytest.fixture(autouse=True)
|
|
def settings(settings):
|
|
settings.DEBUG_TOOLBAR = False
|
|
return settings
|
|
|
|
|
|
@pytest.fixture
|
|
def initial_data(db: None) -> None:
|
|
call_command("loaddata", "initial_data")
|