Skip to content

Commit 06faf84

Browse files
Updated Test file
1 parent 9d5253f commit 06faf84

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed
0 Bytes
Binary file not shown.
-71 Bytes
Binary file not shown.
Binary file not shown.

tests/test_api.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ def test_get_booking_by_id(self):
1919
assert response.status_code == 200
2020

2121
def test_get_booking_by_id_json_schema(self):
22-
response = api_client.get_booking_by_id(id=1)
22+
ids = api_client.get_booking_ids()
23+
id = ids.as_dict[0]["bookingid"]
24+
response = api_client.get_booking_by_id(id=id)
2325
assert response.status_code == 200
2426
with open("test_data/getBooking_schema.json", "r") as schema_file:
2527
schema = json.load(schema_file)
@@ -66,7 +68,7 @@ def test_update_booking(self):
6668

6769
assert response.status_code == 200
6870
assert response.as_dict["firstname"] == "Sachin"
69-
assert response.as_dict["lastname"] == "khot"
71+
assert response.as_dict["lastname"] == "Khot"
7072
assert response.as_dict["totalprice"] == 1200
7173
assert response.as_dict["depositpaid"] == True
7274
assert response.as_dict["additionalneeds"] == "Lunch"

0 commit comments

Comments
 (0)