From b00a4ec9c57819593be541914c51a03a4be186d1 Mon Sep 17 00:00:00 2001 From: Max Marrone Date: Tue, 10 Dec 2024 14:27:55 -0500 Subject: [PATCH] Revert test_response.py changes. Commit b5b28b6ab290eb866efc9963387d176954e29f4b appears to have fixed the underlying problem that was necessitating these changes. --- .../tests/service/json_api/test_response.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/robot-server/tests/service/json_api/test_response.py b/robot-server/tests/service/json_api/test_response.py index 97ecc0fad46..05e01f45b6c 100644 --- a/robot-server/tests/service/json_api/test_response.py +++ b/robot-server/tests/service/json_api/test_response.py @@ -38,7 +38,7 @@ class ResponseSpec(NamedTuple): RESPONSE_SPECS = [ ResponseSpec( subject=SimpleBody(data=_Resource(id="hello")), - expected={"data": {"id": "hello", "val": None}}, + expected={"data": {"id": "hello"}}, ), ResponseSpec( subject=Body( @@ -46,8 +46,8 @@ class ResponseSpec(NamedTuple): links=_Links(sibling=ResourceLink(href="/bar")), ), expected={ - "data": {"id": "hello", "val": None}, - "links": {"sibling": {"href": "/bar", "meta": None}}, + "data": {"id": "hello"}, + "links": {"sibling": {"href": "/bar"}}, }, ), ResponseSpec( @@ -56,7 +56,7 @@ class ResponseSpec(NamedTuple): ), ResponseSpec( subject=EmptyBody(links=_Links(sibling=ResourceLink(href="/bar"))), - expected={"links": {"sibling": {"href": "/bar", "meta": None}}}, + expected={"links": {"sibling": {"href": "/bar"}}}, ), ResponseSpec( subject=SimpleMultiBody( @@ -64,7 +64,7 @@ class ResponseSpec(NamedTuple): meta=MultiBodyMeta(cursor=1, totalLength=3), ), expected={ - "data": [{"id": "hello", "val": None}, {"id": "goodbye", "val": None}], + "data": [{"id": "hello"}, {"id": "goodbye"}], "meta": {"cursor": 1, "totalLength": 3}, }, ), @@ -75,8 +75,8 @@ class ResponseSpec(NamedTuple): meta=MultiBodyMeta(cursor=1, totalLength=3), ), expected={ - "data": [{"id": "hello", "val": None}, {"id": "goodbye", "val": None}], - "links": {"sibling": {"href": "/bar", "meta": None}}, + "data": [{"id": "hello"}, {"id": "goodbye"}], + "links": {"sibling": {"href": "/bar"}}, "meta": {"cursor": 1, "totalLength": 3}, }, ),