Skip to content

Commit 92f5d42

Browse files
committed
@sanderegg review: fix
1 parent 41453a8 commit 92f5d42

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/models-library/tests/test__models_fit_schemas.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from collections.abc import Callable
66

77
import pytest
8-
from common_library.json_serialization import json_loads
98
from models_library.projects import Project
109
from models_library.services import ServiceMetaDataPublished
1110
from pydantic.main import BaseModel
@@ -28,7 +27,7 @@ def test_generated_schema_same_as_original(
2827
# TODO: create instead a fixture that returns a Callable and do these checks
2928
# on separate test_* files that follow the same package submodule's hierarchy
3029
#
31-
generated_schema = json_loads(pydantic_model.model_json_schema(), indent=2)
30+
generated_schema = pydantic_model.model_json_schema()
3231
original_schema = json_schema_dict(original_json_schema)
3332

3433
# NOTE: A change is considered an addition when the destination schema has become more permissive relative to the source schema. For example {"type": "string"} -> {"type": ["string", "number"]}.

0 commit comments

Comments
 (0)