From a9a128c32156b85aaaa18f8b43465ecfcff6675d Mon Sep 17 00:00:00 2001 From: "getsantry[bot]" <66042841+getsantry[bot]@users.noreply.github.com> Date: Sat, 21 Dec 2024 02:52:48 +0000 Subject: [PATCH] style(lint): Auto commit lint changes --- python/tests/test_examples.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/tests/test_examples.py b/python/tests/test_examples.py index 81342d60..a5b8da3d 100644 --- a/python/tests/test_examples.py +++ b/python/tests/test_examples.py @@ -4,11 +4,11 @@ import jsonschema import pytest import rapidjson +from jsonschema import RefResolver from sentry_kafka_schemas import iter_examples -from sentry_kafka_schemas.codecs.json import file_handler, BASE_DIR +from sentry_kafka_schemas.codecs.json import BASE_DIR, file_handler from sentry_kafka_schemas.sentry_kafka_schemas import _get_schema, get_codec, get_topic, list_topics from sentry_kafka_schemas.types import Example -from jsonschema import RefResolver def get_all_examples() -> Iterator[Tuple[str, int, Example]]: @@ -71,11 +71,11 @@ def test_json_examples( compiled(example_data) elif jsonschema_library == "jsonschema": try: - #TODO: Is this even necessary? Looks like we removed usage of jsonschema? + # TODO: Is this even necessary? Looks like we removed usage of jsonschema? resolver = RefResolver( base_uri=f"file:/{BASE_DIR}", referrer=schema, - handlers={"file": file_handler} # Use the custom_resolver function + handlers={"file": file_handler}, # Use the custom_resolver function ) jsonschema.validate(example_data, schema, resolver=resolver) except jsonschema.ValidationError as e: