init project tests

This commit is contained in:
Maximilian 2025-06-07 19:24:41 +02:00
parent d0ff728224
commit 7c9318c778
44 changed files with 4431 additions and 49 deletions

20
test/conftest.py Normal file
View file

@ -0,0 +1,20 @@
"""
Test configuration for Django FBF project.
"""
import os
import sys
import django
from django.conf import settings
from django.test.utils import get_runner
# Add the app directory to the Python path
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', 'app'))
# Add the test directory to the Python path for test_settings
sys.path.insert(0, os.path.dirname(__file__))
# Configure Django settings for tests
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'test_settings')
# Setup Django
django.setup()