[tests] added project root to PYTHONPATH for the testapp

django-5.0
Thomas Leichtfuß 2020-09-12 21:25:51 +02:00
parent 0e381ebcf7
commit 4cae52ee94
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,8 @@
import os
import sys
sys.path.insert(1, os.path.abspath('..'))
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'testapp.settings')