[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
dc2d160c64
commit
f1332bd050
1 changed files with 2 additions and 6 deletions
|
|
@ -1536,12 +1536,8 @@ def test_monitor_unload_clears_only_the_model_it_freed():
|
|||
pinned to a model just freed; matching none of them, or matching an external
|
||||
pick, deletes a selection this button never touched, because clearCheckpoint
|
||||
also drops the persisted external checkpoint."""
|
||||
page = " ".join(
|
||||
_read("features/api-monitor/api-monitor-page.tsx").split()
|
||||
)
|
||||
page = " ".join(_read("features/api-monitor/api-monitor-page.tsx").split())
|
||||
assert "const unloadedAliases = [checkpoint, status.active_model];" in page
|
||||
assert "!isExternalModelId(selected)" in page
|
||||
assert (
|
||||
"unloadedAliases.some((alias) => modelIdsMatch(selected, alias))" in page
|
||||
)
|
||||
assert "unloadedAliases.some((alias) => modelIdsMatch(selected, alias))" in page
|
||||
assert "store.clearCheckpoint();" in page
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue