fix test args

This commit is contained in:
Jensen Yap 2025-08-06 10:45:52 +09:00
parent 94506a3f3f
commit cc6edf555a
2 changed files with 5 additions and 8 deletions

View File

@ -22,7 +22,7 @@ models:
- CONTAINS(result, 'X-GitHub-Api-Version')
- CONTAINS(result, 'Accept')
- name: post
- name: post_api
tests:
- test_udf_without_context:
name: test_github_utils__post_invalid_route
@ -33,7 +33,7 @@ models:
- result:status_code = 404
- result IS NOT NULL
- name: put
- name: put_api
tests:
- test_udf_without_context:
name: test_github_utils__put_invalid_route

View File

@ -35,8 +35,7 @@ models:
- test_udf_without_context:
name: test_slack_utils__post_message_httpbin
args: >
'fake-test-token',
'https://httpbin.org/post',
'C1234567890',
{'text': 'Test message from Livequery'}
assertions:
- result:status_code = 200
@ -45,8 +44,7 @@ models:
- test_udf_without_context:
name: test_slack_utils__post_message_auth_error
args: >
'invalid-token',
'https://httpbin.org/status/401',
'C1234567890',
{'text': 'Test message'}
assertions:
- result:status_code = 401
@ -57,8 +55,7 @@ models:
- test_udf_without_context:
name: test_slack_utils__post_reply_httpbin
args: >
'fake-test-token',
'https://httpbin.org/post',
'C1234567890',
'1234567890.123456',
{'text': 'Test reply from Livequery'}
assertions: