(self)
| 1287 | assert response.foo == 2 |
| 1288 | |
| 1289 | def test_base_url_setter(self) -> None: |
| 1290 | client = AsyncOpencode(base_url="https://example.com/from_init", _strict_response_validation=True) |
| 1291 | assert client.base_url == "https://example.com/from_init/" |
| 1292 | |
| 1293 | client.base_url = "https://example.com/from_setter" # type: ignore[assignment] |
| 1294 | |
| 1295 | assert client.base_url == "https://example.com/from_setter/" |
| 1296 | |
| 1297 | def test_base_url_env(self) -> None: |
| 1298 | with update_env(OPENCODE_BASE_URL="http://localhost:5000/from/env"): |
nothing calls this directly
no test coverage detected