Skip to content

Commit 63fdb16

Browse files
Add async mixed-config constructor validation test
Co-authored-by: Shri Sukhani <shrisukhani@users.noreply.github.com>
1 parent e63d626 commit 63fdb16

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_custom_headers.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,11 @@ def test_client_constructor_rejects_mixed_config_and_direct_args():
8585
config=ClientConfig(api_key="test-key"),
8686
headers={"X-Team-Trace": "team-1"},
8787
)
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

Comments
 (0)