From 2eea2c21c4b26537968b6da779578ed7fb112354 Mon Sep 17 00:00:00 2001 From: libretto Date: Fri, 25 Oct 2024 19:42:11 +0300 Subject: [PATCH] after merge fixes --- tests/integration/test_json_references.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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