Skip to content

Commit 911db83

Browse files
author
Andrei Bratu
committed
linting issues
1 parent 12c7048 commit 911db83

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/integration/test_decorators.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def my_prompt(question: str) -> str:
3030
messages=[{"role": "user", "content": question}],
3131
)
3232

33+
assert response.choices[0].message.content is not None
3334
return response.choices[0].message.content
3435

3536
assert "paris" in my_prompt("What is the capital of the France?").lower()
@@ -38,7 +39,8 @@ def my_prompt(question: str) -> str:
3839
prompt_versions_response = humanloop_test_client.prompts.list_versions(id=prompt_response.id)
3940
assert len(prompt_versions_response.records) == 2
4041

41-
logs = humanloop_test_client.logs.list(file_id=prompt_response.id, page=1, size=50)
42-
assert len(logs.items) == 1
42+
logs_response = humanloop_test_client.logs.list(file_id=prompt_response.id, page=1, size=50)
43+
44+
assert logs_response.items is not None and len(logs_response.items) == 1
4345
finally:
4446
humanloop_test_client.prompts.delete(id=prompt_response.id)

0 commit comments

Comments
 (0)