File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ def __init__(
2121 if config is not None and any (
2222 value is not None for value in (api_key , base_url , headers )
2323 ):
24- raise TypeError (
24+ raise HyperbrowserError (
2525 "Pass either `config` or `api_key`/`base_url`/`headers`, not both."
2626 )
2727
Original file line number Diff line number Diff line change @@ -314,15 +314,15 @@ def test_client_constructor_headers_override_environment_headers(monkeypatch):
314314
315315
316316def test_client_constructor_rejects_mixed_config_and_direct_args ():
317- with pytest .raises (TypeError , match = "Pass either `config`" ):
317+ with pytest .raises (HyperbrowserError , match = "Pass either `config`" ):
318318 Hyperbrowser (
319319 config = ClientConfig (api_key = "test-key" ),
320320 headers = {"X-Team-Trace" : "team-1" },
321321 )
322322
323323
324324def test_async_client_constructor_rejects_mixed_config_and_direct_args ():
325- with pytest .raises (TypeError , match = "Pass either `config`" ):
325+ with pytest .raises (HyperbrowserError , match = "Pass either `config`" ):
326326 AsyncHyperbrowser (
327327 config = ClientConfig (api_key = "test-key" ),
328328 headers = {"X-Team-Trace" : "team-1" },
You can’t perform that action at this time.
0 commit comments