|
1 | 1 | """Tests for LLM class. |
2 | 2 |
|
3 | | -Construction patches the x402 boundary (x402HttpxClientv2, EthAccountSignerv2, etc.) |
| 3 | +Construction patches the x402 boundary (x402HttpxClient, EthAccountSigner, etc.) |
4 | 4 | so LLM builds normally — no test-only constructor params, no mocking of private methods. |
5 | 5 | """ |
6 | 6 |
|
|
19 | 19 |
|
20 | 20 |
|
21 | 21 | class FakeHTTPClient: |
22 | | - """Stands in for x402HttpxClientv2. |
| 22 | + """Stands in for x402HttpxClient. |
23 | 23 |
|
24 | 24 | 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__ |
26 | 26 | assigns it to self._http_client. |
27 | 27 | """ |
28 | 28 |
|
@@ -90,11 +90,11 @@ async def aread(self) -> bytes: |
90 | 90 | # so LLM.__init__ runs its real code but gets our FakeHTTPClient. |
91 | 91 |
|
92 | 92 | _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", |
98 | 98 | } |
99 | 99 |
|
100 | 100 |
|
|
0 commit comments