Skip to content

Commit

Permalink
after merge fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
libretto committed Oct 25, 2024
1 parent 9adf582 commit 2eea2c2
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions tests/integration/test_json_references.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,10 @@ async def test_json_references_compatibility(registry_async_client: Client) -> N
},
)
assert res.status_code == 200
assert res.json() == {"is_compatible": False}
assert res.json() == {
"is_compatible": False,
"messages": ["type Instance.STRING is not compatible with type Instance.INTEGER"],
}


async def test_json_incompatible_name_references(registry_async_client: Client) -> None:
Expand All @@ -218,9 +221,9 @@ async def test_json_incompatible_name_references(registry_async_client: Client)
)
assert res.status_code == 409
msg = (
"Incompatible schema, compatibility_mode=BACKWARD Restricting acceptable values of properties is an "
"incompatible change. The following properties street2 accepted any value because of the lack of "
"validation (the object schema had neither patternProperties nor additionalProperties), now these values "
"are restricted."
"Incompatible schema, compatibility_mode=BACKWARD. Incompatibilities: Restricting acceptable values of "
"properties is an incompatible change. The following properties street2 accepted any value because of the "
"lack of validation (the object schema had neither patternProperties nor additionalProperties), "
"now these values are restricted."
)
assert res.json()["message"] == msg

0 comments on commit 2eea2c2

Please sign in to comment.