File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
WEBHOOK_URL = "http://test-webhook.com/callback"
2
2
AUTH_TOKEN = "dummy-auth-token"
3
3
WEBHOOK_NAME = "test_webhook"
4
- WEBHOOK_RESPONSE = {"status" : "success" , " message" : "Webhook registered successfully" }
4
+ WEBHOOK_RESPONSE = {"message" : "Webhook registered successfully" }
5
5
WHISPER_RESPONSE = {"status_code" : 200 , "extraction" : {"result_text" : "Test result" }}
6
6
7
7
8
8
def test_register_webhook (mocker , client_v2 ):
9
9
mock_send = mocker .patch ("requests.Session.send" )
10
10
mock_response = mocker .MagicMock ()
11
- mock_response .status_code = 200
12
- mock_response .text = '{"status": "success", " message": "Webhook registered successfully"}' # noqa: E501
11
+ mock_response .status_code = 201
12
+ mock_response .text = '{"message": "Webhook registered successfully"}' # noqa: E501
13
13
mock_send .return_value = mock_response
14
14
15
15
response = client_v2 .register_webhook (WEBHOOK_URL , AUTH_TOKEN , WEBHOOK_NAME )
You can’t perform that action at this time.
0 commit comments