concurrency-fix #15
@@ -96,6 +96,12 @@ def test_config():
|
||||
"hotel_name": "Test Hotel",
|
||||
"username": "testuser",
|
||||
"password": "testpass",
|
||||
},
|
||||
{
|
||||
"hotel_id": "135",
|
||||
"hotel_name": "Another Hotel",
|
||||
"username": "anotheruser",
|
||||
"password": "anotherpass",
|
||||
}
|
||||
],
|
||||
"default_hotel_code": "HOTEL123",
|
||||
@@ -295,7 +301,7 @@ class TestWixWebhookEndpoint:
|
||||
|
||||
def test_wix_webhook_test_endpoint(self, client, sample_wix_form_data):
|
||||
"""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
|
||||
data = response.json()
|
||||
assert data["status"] == "success"
|
||||
@@ -318,7 +324,7 @@ class TestWixWebhookEndpoint:
|
||||
with test_form_file.open() as 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
|
||||
data = response.json()
|
||||
assert data["status"] == "success"
|
||||
|
||||
@@ -124,7 +124,7 @@
|
||||
},
|
||||
{
|
||||
"label": "hotelid",
|
||||
"value": "39054_001"
|
||||
"value": "135"
|
||||
},
|
||||
{
|
||||
"label": "hotelname",
|
||||
|
||||
Reference in New Issue
Block a user