Skip to content

Commit ec84f70

Browse files
committed
test updates
1 parent b7e4542 commit ec84f70

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,5 +153,5 @@ Key dependencies (Python >=3.11):
153153
- `click`: CLI framework
154154
- `firebase-rest-api`: Backend services
155155
- `pydantic`: Data validation
156-
- `og-test-v2-x402`: x402 payment protocol
156+
- `og-x402`: x402 payment protocol
157157
- `numpy`: Array handling

tests/llm_test.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Tests for LLM class.
22
3-
Construction patches the x402 boundary (x402HttpxClientv2, EthAccountSignerv2, etc.)
3+
Construction patches the x402 boundary (x402HttpxClient, EthAccountSigner, etc.)
44
so LLM builds normally — no test-only constructor params, no mocking of private methods.
55
"""
66

@@ -19,10 +19,10 @@
1919

2020

2121
class FakeHTTPClient:
22-
"""Stands in for x402HttpxClientv2.
22+
"""Stands in for x402HttpxClient.
2323
2424
Configured per-test with set_response / set_stream_response, then
25-
injected via the x402HttpxClientv2 patch so LLM's normal __init__
25+
injected via the x402HttpxClient patch so LLM's normal __init__
2626
assigns it to self._http_client.
2727
"""
2828

@@ -90,11 +90,11 @@ async def aread(self) -> bytes:
9090
# so LLM.__init__ runs its real code but gets our FakeHTTPClient.
9191

9292
_PATCHES = {
93-
"x402_httpx": "src.opengradient.client.llm.x402HttpxClientv2",
94-
"x402_client": "src.opengradient.client.llm.x402Clientv2",
95-
"signer": "src.opengradient.client.llm.EthAccountSignerv2",
96-
"register_exact": "src.opengradient.client.llm.register_exact_evm_clientv2",
97-
"register_upto": "src.opengradient.client.llm.register_upto_evm_clientv2",
93+
"x402_httpx": "src.opengradient.client.llm.x402HttpxClient",
94+
"x402_client": "src.opengradient.client.llm.x402Client",
95+
"signer": "src.opengradient.client.llm.EthAccountSigner",
96+
"register_exact": "src.opengradient.client.llm.register_exact_evm_client",
97+
"register_upto": "src.opengradient.client.llm.register_upto_evm_client",
9898
}
9999

100100

0 commit comments

Comments
 (0)