Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mamico committed Aug 27, 2024
1 parent b167347 commit 4592211
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/redturtle/prenotazioni/tests/test_add_booking.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ def test_additional_fields_text(self):
self.assertEqual(res.status_code, 200)
self.assertEqual(
res.json()["additional_fields"],
'[{"name": "text line", "value": "text field value"}]',
[{"name": "text line", "value": "text field value"}],
)

# Text wrong field type
Expand Down Expand Up @@ -498,7 +498,7 @@ def test_edit_additional_fields(self):
self.assertEqual(res.status_code, 200)
self.assertEqual(
res.json()["additional_fields"],
'[{"name": "field1", "value": "foo"}]',
[{"name": "field1", "value": "foo"}],
)
booking_url = res.json()["@id"]
res = self.api_session.patch(
Expand All @@ -512,7 +512,7 @@ def test_edit_additional_fields(self):
res = self.api_session.get(booking_url)
self.assertEqual(
res.json()["additional_fields"],
'[{"name": "field1", "value": "bar"}]',
[{"name": "field1", "value": "bar"}],
)


Expand Down

0 comments on commit 4592211

Please sign in to comment.