Skip to content

Commit

Permalink
style(lint): Auto commit lint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
getsantry[bot] authored Dec 21, 2024
1 parent ba6598f commit a9a128c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]]:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit a9a128c

Please sign in to comment.