Commit 83bff11
fix(tests): invalidate default registry cache in cp alias tests
The test_cli_cp_alias and test_python_cp_alias tests were failing
because they sync new registry data but the global _default_registry_cache
was not being invalidated. This caused the tests to use a stale cached
registry that didn't include the newly synced models.
The fix resets _default_registry_cache to None after syncing, forcing
get_default_registry() to reload all registries from the cache when
the copy functions are called.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 8cb7460 commit 83bff11
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
589 | 593 | | |
590 | 594 | | |
591 | 595 | | |
| |||
619 | 623 | | |
620 | 624 | | |
621 | 625 | | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
622 | 630 | | |
623 | 631 | | |
624 | 632 | | |
| |||
0 commit comments