Repository navigation
Commit c1c5f6a
test: make the TOML/DSN conflict tests match a reachable state
The tests mocked loadTomlConfig() into returning a config while argv had
no --config. Since --config is the only way TOML loads, that state cannot
occur at runtime — and it specifically skipped the .env-before-TOML load,
which is gated on the flag, so those tests exercised a path production
never takes.
They now pass --config, and run from an empty temp directory so an
ambient .env cannot reach the load the flag now triggers.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 6d69d4b commit c1c5f6a
1 file changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
621 | 621 | | |
622 | 622 | | |
623 | 623 | | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
624 | 627 | | |
625 | 628 | | |
626 | | - | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
627 | 637 | | |
628 | 638 | | |
629 | 639 | | |
630 | 640 | | |
631 | 641 | | |
632 | 642 | | |
633 | 643 | | |
| 644 | + | |
| 645 | + | |
634 | 646 | | |
635 | 647 | | |
636 | 648 | | |
637 | 649 | | |
638 | 650 | | |
639 | | - | |
| 651 | + | |
640 | 652 | | |
641 | 653 | | |
642 | 654 | | |
| |||
0 commit comments