diff --git a/tests/integration/test_json_references.py b/tests/integration/test_json_references.py index 2799dddf7..69084729c 100644 --- a/tests/integration/test_json_references.py +++ b/tests/integration/test_json_references.py @@ -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: @@ -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