Fix inverted TESTING environment variable check #23

Closed
opened 2026-02-20 06:53:14 +00:00 by cal · 1 comment
Owner

`app/dependencies.py:33-34`. Check `if os.environ.get('TESTING') == 'False':` is backwards. Also `.env` has ` TESTING=TRUE` with a leading space.

Priority: low

\`app/dependencies.py:33-34\`. Check \`if os.environ.get('TESTING') == 'False':\` is backwards. Also \`.env\` has \` TESTING=TRUE\` with a leading space. **Priority**: low
cal added the
tech-debt
bug
labels 2026-02-20 06:53:14 +00:00
cal added the
ai-working
label 2026-03-03 21:20:09 +00:00
cal removed the
ai-working
label 2026-03-03 21:21:49 +00:00
Author
Owner

Fixed in PR #40: #40

Two changes:

  1. dependencies.py:33 — flipped == 'False' to == 'True' so TESTING=True correctly routes to the dev URL
  2. .env:64 — removed leading space ( TESTING=TRUETESTING=True) so the env var is actually read, and normalized the casing to match the string comparison
Fixed in PR #40: https://git.manticorum.com/cal/paper-dynasty-database/pulls/40 Two changes: 1. `dependencies.py:33` — flipped `== 'False'` to `== 'True'` so TESTING=True correctly routes to the dev URL 2. `.env:64` — removed leading space (` TESTING=TRUE` → `TESTING=True`) so the env var is actually read, and normalized the casing to match the string comparison
cal added the
ai-pr-opened
label 2026-03-03 21:21:59 +00:00
cal closed this issue 2026-03-10 18:26:26 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cal/paper-dynasty-database#23
No description provided.