We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cef15f commit 6473ce0Copy full SHA for 6473ce0
1 file changed
backend/tests/test_service_events.py
@@ -0,0 +1,13 @@
1
+from backend.app.routes.service_events import publish_service_event, ServiceEventRequest
2
+
3
4
+def test_publish_service_event_returns_accepted_status():
5
+ request = ServiceEventRequest(
6
+ event_type='service.completed',
7
+ product_code='svc_basic',
8
+ customer_reference='cust_1',
9
+ service_receipt_id='srv_1',
10
+ )
11
+ response = publish_service_event(request)
12
+ assert response.status == 'accepted'
13
+ assert response.service_receipt_id == 'srv_1'
0 commit comments