We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 881a911 commit 9c09ebcCopy full SHA for 9c09ebc
tests/test_x402.py
@@ -30,7 +30,10 @@ def test_eth_key_param():
30
@mock.patch.dict(environ, {"ZYTE_API_ETH_KEY": KEY})
31
def test_eth_key_env_var():
32
if HAS_X402:
33
- AsyncZyteAPI()
+ client = AsyncZyteAPI()
34
+ assert client.auth.key == KEY
35
+ assert client.auth.type == "eth"
36
+ assert client.api_url == "https://api-x402.zyte.com/v1/"
37
else:
38
with pytest.raises(ImportError, match="No module named 'eth_account'"):
39
AsyncZyteAPI()
0 commit comments