(self, client: OpenAI)
| 45 | |
| 46 | @parametrize |
| 47 | def test_raw_response_create(self, client: OpenAI) -> None: |
| 48 | response = client.files.with_raw_response.create( |
| 49 | file=b"Example data", |
| 50 | purpose="assistants", |
| 51 | ) |
| 52 | |
| 53 | assert response.is_closed is True |
| 54 | assert response.http_request.headers.get("X-Stainless-Lang") == "python" |
| 55 | file = response.parse() |
| 56 | assert_matches_type(FileObject, file, path=["response"]) |
| 57 | |
| 58 | @parametrize |
| 59 | def test_streaming_response_create(self, client: OpenAI) -> None: |
nothing calls this directly
no test coverage detected