tox.ini: run compile_translations before tests

This commit is contained in:
Benjamin Dauvergne 2023-04-22 12:36:00 +02:00
parent fca6602675
commit 058a1378ff
2 changed files with 2 additions and 0 deletions

View File

@ -56,6 +56,7 @@ class compile_translations(Command):
def run(self):
try:
os.environ.pop('DJANGO_SETTINGS_MODULE', None)
from django.core.management import call_command
for path, dirs, files in os.walk('bijoe'):

View File

@ -45,6 +45,7 @@ deps =
django32: djangorestframework>=3.7
django32: https://git.entrouvert.org/entrouvert/hobo/archive/main.tar.gz
commands =
python setup.py compile_translations
py3-django32: py.test {posargs: --junitxml=test_{envname}_results.xml --cov-report xml --cov-report html --cov=bijoe --cov-config=tox.ini --numprocesses {env:NUMPROCESSES:1} tests/}
[pytest]