Skip to content

Commit

Permalink
Test ext uuids in GraphQL API for single and recurring reservations
Browse files Browse the repository at this point in the history
  • Loading branch information
matti-lamppu committed Dec 10, 2024
1 parent b152cdc commit 99aceed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def test_recurring_reservations__query(graphql):

fields = """
pk
extUuid
name
description
beginDate
Expand Down Expand Up @@ -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(),
Expand Down
2 changes: 2 additions & 0 deletions tests/test_graphql_api/test_reservation/test_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def test_reservation__query__all_fields(graphql):
denyReason { reason }
description
end
extUuid
freeOfChargeReason
handledAt
handlingDetails
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 99aceed

Please sign in to comment.