MCPcopy
hub / github.com/openai/openai-python / test_raw_response_delete

Method test_raw_response_delete

tests/api_resources/test_files.py:153–161  ·  view source on GitHub ↗
(self, client: OpenAI)

Source from the content-addressed store, hash-verified

151
152 @parametrize
153 def test_raw_response_delete(self, client: OpenAI) -> None:
154 response = client.files.with_raw_response.delete(
155 "string",
156 )
157
158 assert response.is_closed is True
159 assert response.http_request.headers.get("X-Stainless-Lang") == "python"
160 file = response.parse()
161 assert_matches_type(FileDeleted, file, path=["response"])
162
163 @parametrize
164 def test_streaming_response_delete(self, client: OpenAI) -> None:

Callers

nothing calls this directly

Calls 4

assert_matches_typeFunction · 0.90
deleteMethod · 0.45
getMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected