Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Tom committed May 24, 2024
1 parent 31495ad commit 58a8d7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/pydantic_avro/avro_to_pydantic.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import json
from typing import Optional

from pydantic_avro.type_handlers import get_pydantic_type
from pydantic_avro.class_registery import ClassRegistry
from pydantic_avro.type_handlers import get_pydantic_type


def validate_schema(schema: dict) -> None:
Expand Down Expand Up @@ -44,5 +44,3 @@ def convert_file(avsc_path: str, output_path: Optional[str] = None):
else:
with open(output_path, "w") as fh:
fh.write(file_content)


1 change: 1 addition & 0 deletions src/pydantic_avro/type_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ def record_type_handler(schema: dict) -> str:

TYPE_VALUE_IS_DICT = ["record", "enum", "array", "map", "logical"]


def get_pydantic_type(schema: dict) -> str:
if isinstance(schema, str):
t = schema
Expand Down

0 comments on commit 58a8d7c

Please sign in to comment.