Skip to content

Commit 9c09ebc

Browse files
committed
Add more new test expectations
1 parent 881a911 commit 9c09ebc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_x402.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ def test_eth_key_param():
3030
@mock.patch.dict(environ, {"ZYTE_API_ETH_KEY": KEY})
3131
def test_eth_key_env_var():
3232
if HAS_X402:
33-
AsyncZyteAPI()
33+
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/"
3437
else:
3538
with pytest.raises(ImportError, match="No module named 'eth_account'"):
3639
AsyncZyteAPI()

0 commit comments

Comments
 (0)