Skip to content

Commit 8ae3dce

Browse files
abhizipstackclaude
andcommitted
fix: set DJANGO_SETTINGS_MODULE for test step in CI
Tests at ../tests/unit import visitran modules which access Django settings at import time. Without DJANGO_SETTINGS_MODULE set, Django raises ImproperlyConfigured. Verified locally: 23 passed, 0 failed Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 8f4f13a commit 8ae3dce

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/core-backend-tests.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ jobs:
3939
# pre-commit checks handled by pre-commit.ci
4040

4141
- name: Run tests
42+
env:
43+
DJANGO_SETTINGS_MODULE: backend.server.settings.dev
4244
run: |
4345
uv run coverage run --rcfile=pyproject.toml --source=. -m \
4446
pytest -x -vv ../tests/unit \

0 commit comments

Comments
 (0)