We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e63d626 commit 63fdb16Copy full SHA for 63fdb16
tests/test_custom_headers.py
@@ -85,3 +85,11 @@ def test_client_constructor_rejects_mixed_config_and_direct_args():
85
config=ClientConfig(api_key="test-key"),
86
headers={"X-Team-Trace": "team-1"},
87
)
88
+
89
90
+def test_async_client_constructor_rejects_mixed_config_and_direct_args():
91
+ with pytest.raises(TypeError, match="Pass either `config`"):
92
+ AsyncHyperbrowser(
93
+ config=ClientConfig(api_key="test-key"),
94
+ headers={"X-Team-Trace": "team-1"},
95
+ )
0 commit comments