(self)
| 512 | assert response.foo == 2 |
| 513 | |
| 514 | def test_base_url_setter(self) -> None: |
| 515 | client = Opencode(base_url="https://example.com/from_init", _strict_response_validation=True) |
| 516 | assert client.base_url == "https://example.com/from_init/" |
| 517 | |
| 518 | client.base_url = "https://example.com/from_setter" # type: ignore[assignment] |
| 519 | |
| 520 | assert client.base_url == "https://example.com/from_setter/" |
| 521 | |
| 522 | def test_base_url_env(self) -> None: |
| 523 | with update_env(OPENCODE_BASE_URL="http://localhost:5000/from/env"): |