Mani Saint-Victor
f3e65a446f
fix(tests): isolate the developer's real .env from the test suite ( #329 )
...
get_effective_config() runs load_dotenv(find_dotenv(usecwd=True),
override=True), so any test that loads config injected the repo's real
.env into os.environ for the rest of the pytest process. An
empty-valued line like MINIMAX_BASE_URL= then made
os.environ.get(key, default) return '' instead of the default,
failing the MiniMax routing tests in full-suite runs while they
passed in isolation.
Generalizes the find_dotenv redirect that test_config.py's
temp_config_dir fixture already applied locally into a suite-wide
autouse fixture, pointing at a never-created path so tests writing
their own tmp_path/.env cannot collide with it. Adds a regression
test reproducing the leak.
Co-authored-by: Xi Zhang <106144707+X-iZhang@users.noreply.github.com >
2026-07-13 10:27:40 +00:00
..
2026-01-29 17:39:50 +00:00
2026-07-13 10:27:40 +00:00
2026-06-22 13:54:14 +00:00
2026-07-08 18:37:48 +00:00
2026-07-08 18:37:48 +00:00
2026-07-08 18:37:48 +00:00
2026-04-22 18:22:33 +02:00
2026-06-07 00:52:59 +01:00
2026-07-08 18:37:48 +00:00
2026-06-26 22:20:52 +01:00
2026-05-07 16:03:02 +01:00
2026-07-08 18:37:48 +00:00
2026-07-08 18:37:48 +00:00
2026-06-08 18:38:13 +01:00
2026-07-03 11:16:33 +02:00
2026-06-10 18:19:13 +01:00
2026-07-07 08:25:35 +01:00
2026-07-08 18:37:48 +00:00
2026-03-19 17:04:05 +01:00
2026-07-08 18:37:48 +00:00
2026-07-08 18:37:48 +00:00
2026-07-08 18:37:48 +00:00
2026-07-08 18:37:48 +00:00
2026-05-31 14:43:42 +01:00
2026-04-30 18:06:22 +01:00
2026-07-08 18:37:48 +00:00
2026-07-05 05:14:42 +00:00
2026-06-11 00:23:55 +01:00
2026-07-05 04:53:52 +00:00
2026-04-21 21:26:40 +01:00
2026-03-19 17:04:02 +01:00
2026-07-03 11:16:33 +02:00
2026-07-08 18:37:48 +00:00
2026-06-23 08:40:35 +01:00
2026-07-05 05:14:42 +00:00
2026-07-05 05:14:42 +00:00
2026-07-08 18:37:48 +00:00
2026-07-13 10:27:40 +00:00
2026-07-08 18:37:48 +00:00
2026-06-07 00:52:59 +01:00
2026-07-08 18:37:48 +00:00
2026-05-29 00:40:46 +01:00
2026-07-05 05:10:24 +00:00
2026-07-08 18:37:48 +00:00
2026-07-08 18:37:48 +00:00
2026-03-19 17:04:02 +01:00
2026-07-08 18:37:48 +00:00
2026-07-08 18:37:48 +00:00
2026-06-22 13:54:14 +00:00
2026-07-08 18:37:48 +00:00
2026-07-08 18:37:48 +00:00
2026-07-08 18:37:48 +00:00
2026-07-05 05:14:42 +00:00
2026-07-08 18:37:48 +00:00
2026-07-08 18:37:48 +00:00
2026-07-08 18:37:48 +00:00
2026-07-08 18:37:48 +00:00
2026-07-08 18:37:48 +00:00
2026-06-11 00:23:55 +01:00
2026-06-26 22:48:37 +01:00
2026-06-09 15:55:44 +01:00
2026-07-11 11:59:27 +00:00
2026-07-13 11:08:59 +01:00
2026-05-05 12:45:50 +01:00
2026-07-08 18:37:48 +00:00
2026-07-08 18:37:48 +00:00
2026-04-15 14:30:26 +02:00
2026-07-08 18:37:48 +00:00
2026-07-08 18:37:48 +00:00
2026-07-08 18:37:48 +00:00
2026-07-08 18:37:48 +00:00
2026-07-08 18:37:48 +00:00
2026-07-08 18:37:48 +00:00
2026-07-08 18:28:44 +00:00
2026-04-18 15:01:22 +01:00
2026-07-08 18:37:48 +00:00
2026-07-08 18:37:48 +00:00
2026-06-16 09:14:29 +02:00
2026-07-08 18:37:48 +00:00
2026-07-08 18:37:48 +00:00
2026-04-21 21:26:40 +01:00
2026-07-08 18:37:48 +00:00
2026-03-15 21:12:51 +00:00
2026-06-07 00:52:59 +01:00
2026-07-08 18:37:48 +00:00
2026-06-25 17:31:23 +01:00
2026-06-25 17:31:23 +01:00
2026-07-08 18:37:48 +00:00
2026-07-08 18:37:48 +00:00
2026-05-01 13:23:59 +02:00
2026-07-08 18:37:48 +00:00
2026-07-08 18:37:48 +00:00
2026-06-22 13:54:14 +00:00
2026-06-08 17:14:25 +01:00
2026-06-08 17:14:25 +01:00
2026-07-08 18:37:48 +00:00
2026-07-08 18:37:48 +00:00
2026-06-08 17:14:25 +01:00
2026-06-08 17:14:25 +01:00
2026-07-08 18:37:48 +00:00
2026-07-08 18:37:48 +00:00
2026-06-08 17:14:25 +01:00
2026-07-08 18:37:48 +00:00
2026-03-24 18:13:42 +00:00
2026-07-08 18:37:48 +00:00
2026-07-08 18:37:48 +00:00
2026-06-23 14:47:25 +01:00
2026-03-11 00:03:18 +00:00
2026-07-08 18:37:48 +00:00
2026-07-08 18:37:48 +00:00
2026-07-08 18:37:48 +00:00
2026-06-22 13:54:14 +00:00
2026-03-20 19:57:35 +00:00
2026-07-08 18:37:48 +00:00