secure-web/backend/tests/__init__.py

12 lines
268 B
Python

"""
Tests configuration and fixtures.
"""
import os
import sys
# Add backend to Python path
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
# Set Django settings module
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings')