[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
84bf2744f8
commit
c7a1c37d36
1 changed files with 2 additions and 5 deletions
|
|
@ -1433,9 +1433,7 @@ def test_the_hub_settings_editor_reseeds_when_the_live_config_lands():
|
|||
# settings variant, which is the loader's filename label nulled out for a
|
||||
# standalone .gguf, so both surfaces name one config per file.
|
||||
sidebar = " ".join(_read("features/model-picker/components/sidebar-model-config.tsx").split())
|
||||
assert (
|
||||
"key={modelConfigInstanceKey(modelId, settingsGgufVariant, loadedConfig)}" in sidebar
|
||||
)
|
||||
assert "key={modelConfigInstanceKey(modelId, settingsGgufVariant, loadedConfig)}" in sidebar
|
||||
|
||||
signature = " ".join(_read("features/model-picker/model-config/config-signature.ts").split())
|
||||
# "No live config yet" has to be its own value: that transition is exactly
|
||||
|
|
@ -1507,8 +1505,7 @@ def test_a_standalone_gguf_has_one_settings_identity_everywhere():
|
|||
sidebar = " ".join(_read("features/model-picker/components/sidebar-model-config.tsx").split())
|
||||
# Nulled for the settings identity, and used for every field that keys it.
|
||||
assert (
|
||||
"const settingsGgufVariant = isStandaloneGgufPath(modelId) ? null : ggufVariant;"
|
||||
in sidebar
|
||||
"const settingsGgufVariant = isStandaloneGgufPath(modelId) ? null : ggufVariant;" in sidebar
|
||||
)
|
||||
assert "ggufVariant: settingsGgufVariant," in sidebar
|
||||
assert "ggufVariant: settingsGgufVariant ?? undefined," in sidebar
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue