tox.ini: add env to manipulate migrations (#39544)

tox -e manage makemigrations
This commit is contained in:
Benjamin Dauvergne 2020-04-15 10:45:31 +02:00
parent d02c2dc884
commit e971a8f8a4
2 changed files with 12 additions and 0 deletions

3
manage.py Normal file → Executable file
View File

@ -23,6 +23,9 @@ import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "passerelle.settings")
from django.conf import settings
settings.INSTALLED_APPS += ('atreal_openads',)
from django.core.management import execute_from_command_line

View File

@ -44,3 +44,12 @@ deps =
commands =
py.test {posargs: {env:COVERAGE:} {env:JUNIT:} tests/}
coverage: ./pylint.sh atreal_openads/
[testenv:manage]
usedevelop = True
setenv =
DJANGO_SETTINGS_MODULE=passerelle.settings
deps =
http://git.entrouvert.org/passerelle.git/snapshot/passerelle-master.tar.gz
commands =
python3 ./manage.py {posargs:--help}