From 99aceed694a91b8855f727ed557d616685777181 Mon Sep 17 00:00:00 2001 From: Matti Lamppu Date: Tue, 10 Dec 2024 10:20:04 +0200 Subject: [PATCH] Test ext uuids in GraphQL API for single and recurring reservations --- tests/test_graphql_api/test_recurring_reservation/test_query.py | 2 ++ tests/test_graphql_api/test_reservation/test_query.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tests/test_graphql_api/test_recurring_reservation/test_query.py b/tests/test_graphql_api/test_recurring_reservation/test_query.py index 4beaffded..c87f0877a 100644 --- a/tests/test_graphql_api/test_recurring_reservation/test_query.py +++ b/tests/test_graphql_api/test_recurring_reservation/test_query.py @@ -28,6 +28,7 @@ def test_recurring_reservations__query(graphql): fields = """ pk + extUuid name description beginDate @@ -78,6 +79,7 @@ def test_recurring_reservations__query(graphql): assert len(response.edges) == 1 assert response.node(0) == { "pk": recurring_reservation.pk, + "extUuid": str(recurring_reservation.ext_uuid), "name": recurring_reservation.name, "description": recurring_reservation.description, "beginDate": recurring_reservation.begin_date.isoformat(), diff --git a/tests/test_graphql_api/test_reservation/test_query.py b/tests/test_graphql_api/test_reservation/test_query.py index f3766847c..bbbcdc410 100644 --- a/tests/test_graphql_api/test_reservation/test_query.py +++ b/tests/test_graphql_api/test_reservation/test_query.py @@ -57,6 +57,7 @@ def test_reservation__query__all_fields(graphql): denyReason { reason } description end + extUuid freeOfChargeReason handledAt handlingDetails @@ -117,6 +118,7 @@ def test_reservation__query__all_fields(graphql): "denyReason": None, "description": reservation.description, "end": reservation.end.isoformat(), + "extUuid": str(reservation.ext_uuid), "freeOfChargeReason": reservation.free_of_charge_reason, "handledAt": reservation.handled_at, "handlingDetails": reservation.handling_details,