From 02b0ec3b9c20cee844f1b8c698f193bca27f7966 Mon Sep 17 00:00:00 2001 From: Jonas Linter <{email_address}> Date: Thu, 4 Dec 2025 20:48:50 +0100 Subject: [PATCH] Updated handshake reference file --- tests/test_api_freerooms.py | 4 +- tests/test_data/Handshake-OTA_PingRS.xml | 52 ++---------------------- 2 files changed, 6 insertions(+), 50 deletions(-) diff --git a/tests/test_api_freerooms.py b/tests/test_api_freerooms.py index 322b1e4..77fd69b 100644 --- a/tests/test_api_freerooms.py +++ b/tests/test_api_freerooms.py @@ -157,7 +157,7 @@ def test_freerooms_endpoint_complete_set(freerooms_client: TestClient, freerooms rows = fetch_availability(freerooms_client) assert len(rows) == 3 - assert rows[0].count_type_2 == 3 + assert rows[0].bookable_type_2 == 3 def test_freerooms_endpoint_delta_updates_existing_rows( @@ -182,7 +182,7 @@ def test_freerooms_endpoint_delta_updates_existing_rows( assert response.status_code == HttpStatusCode.OK rows = fetch_availability(freerooms_client) - counts = {row.date.isoformat(): row.count_type_2 for row in rows} + counts = {row.date.isoformat(): row.bookable_type_2 for row in rows} assert counts["2025-10-02"] == 1 assert counts["2025-10-01"] == 3 diff --git a/tests/test_data/Handshake-OTA_PingRS.xml b/tests/test_data/Handshake-OTA_PingRS.xml index d8a0b35..5399a76 100644 --- a/tests/test_data/Handshake-OTA_PingRS.xml +++ b/tests/test_data/Handshake-OTA_PingRS.xml @@ -1,53 +1,9 @@ - - - - - + + - { - "versions": [ - { - "version": "2024-10", - "actions": [ - { - "action": "action_OTA_Read" - }, - { - "action": "action_OTA_HotelResNotif_GuestRequests" - } - ] - }, - { - "version": "2022-10", - "actions": [ - { - "action": "action_OTA_Ping" - }, - { - "action": "action_OTA_Read" - }, - { - "action": "action_OTA_HotelResNotif_GuestRequests" - } - ] - } - ] -} + {"versions": [{"version": "2024-10", "actions": [{"action": "action_OTA_Read"}, {"action": "action_OTA_HotelResNotif_GuestRequests"}, {"action": "action_OTA_HotelInvCountNotif", "supports": ["OTA_HotelInvCountNotif_accept_rooms", "OTA_HotelInvCountNotif_accept_categories", "OTA_HotelInvCountNotif_accept_deltas", "OTA_HotelInvCountNotif_accept_complete_set", "OTA_HotelInvCountNotif_accept_out_of_order", "OTA_HotelInvCountNotif_accept_out_of_market", "OTA_HotelInvCountNotif_accept_closing_seasons"]}]}, {"version": "2022-10", "actions": [{"action": "action_OTA_Ping"}, {"action": "action_OTA_Read"}, {"action": "action_OTA_HotelResNotif_GuestRequests"}, {"action": "action_OTA_HotelInvCountNotif", "supports": ["OTA_HotelInvCountNotif_accept_rooms", "OTA_HotelInvCountNotif_accept_categories", "OTA_HotelInvCountNotif_accept_deltas", "OTA_HotelInvCountNotif_accept_complete_set", "OTA_HotelInvCountNotif_accept_out_of_order", "OTA_HotelInvCountNotif_accept_out_of_market", "OTA_HotelInvCountNotif_accept_closing_seasons"]}]}]} {