(self)
| 1671 | await client.close() |
| 1672 | |
| 1673 | def test_invalid_http_client(self) -> None: |
| 1674 | with pytest.raises(TypeError, match="Invalid `http_client` arg"): |
| 1675 | with httpx.Client() as http_client: |
| 1676 | AsyncOpenAI( |
| 1677 | base_url=base_url, |
| 1678 | api_key=api_key, |
| 1679 | admin_api_key=admin_api_key, |
| 1680 | _strict_response_validation=True, |
| 1681 | http_client=cast(Any, http_client), |
| 1682 | ) |
| 1683 | |
| 1684 | async def test_default_headers_option(self) -> None: |
| 1685 | test_client = AsyncOpenAI( |
nothing calls this directly
no test coverage detected