From 9df8bedda20a11edc3c362b7ab931af85732fb30 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 28 Jul 2026 21:34:06 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- studio/backend/tests/test_openai_auto_switch.py | 6 +++--- tests/studio/test_model_picker_contracts.py | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/studio/backend/tests/test_openai_auto_switch.py b/studio/backend/tests/test_openai_auto_switch.py index 11759278cf..e4124d1383 100644 --- a/studio/backend/tests/test_openai_auto_switch.py +++ b/studio/backend/tests/test_openai_auto_switch.py @@ -5343,9 +5343,9 @@ def test_map_entry_fill_reads_and_writes_in_one_transaction(tmp_path, monkeypatc "a": {"v": 1} } assert db.get_app_setting(key) == {"a": {"v": 1}} - assert db.upsert_app_setting_map_entry( - key, "a", {"v": 2, "w": 7}, fill_absent_fields = True - ) == {"a": {"v": 1, "w": 7}} + assert db.upsert_app_setting_map_entry(key, "a", {"v": 2, "w": 7}, fill_absent_fields = True) == { + "a": {"v": 1, "w": 7} + } assert db.get_app_setting(key) == {"a": {"v": 1, "w": 7}} # Absent: created. assert db.upsert_app_setting_map_entry(key, "b", {"v": 3}, fill_absent_fields = True) == { diff --git a/tests/studio/test_model_picker_contracts.py b/tests/studio/test_model_picker_contracts.py index 7ab8642e16..13a722d3b1 100644 --- a/tests/studio/test_model_picker_contracts.py +++ b/tests/studio/test_model_picker_contracts.py @@ -969,7 +969,9 @@ def test_the_backfill_fills_in_fields_rather_than_skipping_known_keys(): assert "{ fillAbsentFields: true }," in backfill # Key presence alone is not "done": what the server lacks decides. assert "const stored = known.get(key);" in backfill - assert "if (stored && absentFields(stored, current.config).length === 0) { continue; }" in backfill + assert ( + "if (stored && absentFields(stored, current.config).length === 0) { continue; }" in backfill + ) assert "const fields = Object.keys(toApiOverride(config));" in backfill assert "return fields.filter((field) => !(field in stored));" in backfill