Commit e5442a8
fix: only set BASIC_MEMORY_ENV=test during pytest runs
The alembic/env.py module was unconditionally setting BASIC_MEMORY_ENV='test'
at import time, which caused config.is_test_env to always return True. This
prevented the MCP server from starting the file watch service, breaking file
sync for external changes.
Fix: Only set the env var when PYTEST_CURRENT_TEST is set, indicating an
actual pytest run. This preserves test behavior while enabling watch service
in production.
Fixes #481
Co-authored-by: Paul Hernandez <phernandez@users.noreply.github.com>
Signed-off-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>1 parent 6281a81 commit e5442a8
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
| |||
0 commit comments