Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit 7a70414

Browse files
committed
Update the expected result for vllm_fim
Signed-off-by: Radoslav Dimitrov <[email protected]>
1 parent f0127af commit 7a70414

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

tests/integration/testcases.yaml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -195,19 +195,14 @@ testcases:
195195
"prompt":"<|fim_prefix|>\n# codegate/test.py\nimport invokehttp\nimport requests\n\nkey = \"mysecret-key\"\n\ndef call_api():\n <|fim_suffix|>\n\n\ndata = {'key1': 'test1', 'key2': 'test2'}\nresponse = call_api('http://localhost:8080', method='post', data='data')\n<|fim_middle|>"
196196
}
197197
likes: |
198-
# Create an instance of the InvokeHTTP class
199-
invoke = invokehttp.InvokeHTTP(key)
198+
return response.json()
200199
201-
# Call the API using the invoke_http method
202-
response = invoke.invoke_http(url, method='get', data=data)
200+
def test_call_api():
201+
response = call_api('http://localhost:8080', method='post', data='data')
202+
assert response['key1'] == 'test1' and response['key2'] == 'test2', "Test failed"
203203
204-
# Check the response status code
205-
if response.status_code == 200:
206-
# The API call was successful
207-
print(response.json())
208-
else:
209-
# The API call failed
210-
print('Error:', response.status_code)
204+
if __name__ == '__main__':
205+
test_call_api()
211206
212207
anthropic_chat:
213208
name: Anthropic Chat

0 commit comments

Comments
 (0)