Skip to content

Commit 4ece0ef

Browse files
butvinmclaude
andcommitted
Remove redundant local import json in test functions
The module-level import already covers these usages. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c9502fb commit 4ece0ef

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

tests/main/jsonschema/test_main_jsonschema.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,6 @@ def test_main_remote_ref_blocked_by_default(tmp_path: Path, capsys: pytest.Captu
957957
"ref_field": {"$ref": "../other/schema.json#/definitions/Thing"},
958958
},
959959
}
960-
import json
961960

962961
input_file = tmp_path / "schema.json"
963962
input_file.write_text(json.dumps(schema))
@@ -975,8 +974,6 @@ def test_main_remote_ref_blocked_by_default(tmp_path: Path, capsys: pytest.Captu
975974

976975
def test_main_missing_local_ref_error_message(tmp_path: Path, capsys: pytest.CaptureFixture[str]) -> None:
977976
"""Test that missing local $ref files produce a clear error message."""
978-
import json
979-
980977
schema = {
981978
"$schema": "http://json-schema.org/draft-07/schema#",
982979
"title": "Test",

0 commit comments

Comments
 (0)