Skip to content

Commit a9a128c

Browse files
style(lint): Auto commit lint changes
1 parent ba6598f commit a9a128c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python/tests/test_examples.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
import jsonschema
55
import pytest
66
import rapidjson
7+
from jsonschema import RefResolver
78
from sentry_kafka_schemas import iter_examples
8-
from sentry_kafka_schemas.codecs.json import file_handler, BASE_DIR
9+
from sentry_kafka_schemas.codecs.json import BASE_DIR, file_handler
910
from sentry_kafka_schemas.sentry_kafka_schemas import _get_schema, get_codec, get_topic, list_topics
1011
from sentry_kafka_schemas.types import Example
11-
from jsonschema import RefResolver
1212

1313

1414
def get_all_examples() -> Iterator[Tuple[str, int, Example]]:
@@ -71,11 +71,11 @@ def test_json_examples(
7171
compiled(example_data)
7272
elif jsonschema_library == "jsonschema":
7373
try:
74-
#TODO: Is this even necessary? Looks like we removed usage of jsonschema?
74+
# TODO: Is this even necessary? Looks like we removed usage of jsonschema?
7575
resolver = RefResolver(
7676
base_uri=f"file:/{BASE_DIR}",
7777
referrer=schema,
78-
handlers={"file": file_handler} # Use the custom_resolver function
78+
handlers={"file": file_handler}, # Use the custom_resolver function
7979
)
8080
jsonschema.validate(example_data, schema, resolver=resolver)
8181
except jsonschema.ValidationError as e:

0 commit comments

Comments
 (0)