concurrency-fix #15

Merged
jonas merged 24 commits from concurrency-fix into main 2025-12-01 13:34:35 +00:00
2 changed files with 9 additions and 3 deletions
Showing only changes of commit 7d09dbfd63 - Show all commits

View File

@@ -96,6 +96,12 @@ def test_config():
"hotel_name": "Test Hotel", "hotel_name": "Test Hotel",
"username": "testuser", "username": "testuser",
"password": "testpass", "password": "testpass",
},
{
"hotel_id": "135",
"hotel_name": "Another Hotel",
"username": "anotheruser",
"password": "anotherpass",
} }
], ],
"default_hotel_code": "HOTEL123", "default_hotel_code": "HOTEL123",
@@ -295,7 +301,7 @@ class TestWixWebhookEndpoint:
def test_wix_webhook_test_endpoint(self, client, sample_wix_form_data): def test_wix_webhook_test_endpoint(self, client, sample_wix_form_data):
"""Test the test endpoint works identically.""" """Test the test endpoint works identically."""
response = client.post("/api/webhook/wix-form/test", json=sample_wix_form_data) response = client.post("/api/webhook/wix-form", json=sample_wix_form_data)
assert response.status_code == HttpStatusCode.OK assert response.status_code == HttpStatusCode.OK
data = response.json() data = response.json()
assert data["status"] == "success" assert data["status"] == "success"
@@ -318,7 +324,7 @@ class TestWixWebhookEndpoint:
with test_form_file.open() as f: with test_form_file.open() as f:
form_data = json.load(f) form_data = json.load(f)
response = client.post("/api/webhook/wix-form/test", json=form_data) response = client.post("/api/webhook/wix-form", json=form_data)
assert response.status_code == HttpStatusCode.OK assert response.status_code == HttpStatusCode.OK
data = response.json() data = response.json()
assert data["status"] == "success" assert data["status"] == "success"

View File

@@ -124,7 +124,7 @@
}, },
{ {
"label": "hotelid", "label": "hotelid",
"value": "39054_001" "value": "135"
}, },
{ {
"label": "hotelname", "label": "hotelname",