11from humanloop .client import Humanloop
2+
23from tests .integration .conftest import TestIdentifiers
34
45
@@ -7,17 +8,17 @@ def test_prompts_call(
78 prompt : TestIdentifiers ,
89 test_prompt_config : TestIdentifiers ,
910) -> None :
10- response = humanloop_test_client .prompts .call (
11+ response = humanloop_test_client .prompts .call ( # type: ignore [attr-defined]
1112 path = prompt .file_path ,
12- prompt = {** test_prompt_config },
13+ prompt = {** test_prompt_config }, # type: ignore [misc, arg-type, typeddict-item, dict-item, list-item]
1314 inputs = {"question" : "What is the capital of the France?" },
1415 )
1516 assert response is not None
1617 assert response .log_id is not None
1718 assert response .logs is not None
1819 for log in response .logs :
1920 assert log is not None
20- assert log .output or log . error or log . output_message is not None
21+ assert log .output is not None
2122 assert "Paris" in log .output
2223 assert response .prompt .path == prompt .file_path
2324
@@ -27,16 +28,16 @@ def test_prompts_call_stream(
2728 prompt : TestIdentifiers ,
2829 test_prompt_config : TestIdentifiers ,
2930) -> None :
30- response = humanloop_test_client .prompts .call_stream (
31+ response = humanloop_test_client .prompts .call_stream ( # type: ignore [attr-defined]
3132 path = prompt .file_path ,
32- prompt = {** test_prompt_config },
33+ prompt = {** test_prompt_config }, # type: ignore [misc, arg-type, typeddict-item, dict-item, list-item]
3334 inputs = {"question" : "What is the capital of the France?" },
3435 )
3536
3637 output = ""
3738 for chunk in response :
3839 assert chunk is not None
39- assert chunk .output or chunk . error or chunk . output_message is not None
40+ assert chunk .output is not None
4041 assert chunk .id is not None
4142 assert chunk .prompt_id is not None
4243 assert chunk .version_id is not None
0 commit comments