Skip to content

Commit

Permalink
add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobiichi-Origami committed Jan 11, 2024
1 parent 198252e commit a6573dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/qianfan/tests/chat_completion_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,3 +642,8 @@ def test_auth_using_iam():
results = qianfan.ChatCompletion().do(messages=TEST_MESSAGE[:1])
assert "X-Bce-Date" in results["_header"]
assert "Authorization" in results["_header"]


def test_keyword_arguments_passing():
cc = qianfan.ChatCompletion(ssl=False)
assert not cc._client._client.ssl

0 comments on commit a6573dd

Please sign in to comment.