SIGN IN SIGN UP

chore(api): remove redundant generated test edits (#3697)

- [x] I understand that this repository is auto-generated and my pull
request may not be merged

## Changes being requested

Restore the generated sample values in the Speech, Batches, and Files
resource
tests, including the matching fake file-content URLs. Move the Responses
`parse` signature check unchanged from the generated test file into the
handwritten Responses tests.

Coverage is preserved in these exact tests:

-
[tests/lib/responses/test_responses.py::test_parse_method_in_sync](https://github.com/openai/openai-python/blob/f1349ad105372d314f7e60ca407210073c1cb73d/tests/lib/responses/test_responses.py#L87)
is the
  original test, moved verbatim. It compares `responses.create` with
`responses.parse`, excludes `stream` and `tools`, and runs for both sync
and
  async clients.
-
[tests/lib/responses/test_responses.py::test_parse_method_definition_in_sync](https://github.com/openai/openai-python/blob/f1349ad105372d314f7e60ca407210073c1cb73d/tests/lib/responses/test_responses.py#L98)
  remains unchanged. It checks the same two methods while excluding only
  `tools`, so it also checks the `stream` parameter.

No SDK implementation, public API, or test coverage is removed.

All four generated resource-test files become byte-identical to the
verified
generated output. This continues
[openai-python#3696](https://github.com/openai/openai-python/pull/3696);
no schema, configuration, compiler, dependency, fixture, or
ownership-rule
changes are needed.

## Additional context & links

Validation:

- The custom-code report verifies 46 -> 42 mixed files: four removed
customizations, with no new custom-code files or changes to the others.
- An AST comparison verifies exactly 60 expected fake-value
substitutions,
the verbatim move of the original signature test, and the unchanged
stricter
  handwritten test.
- `./scripts/format` and `./scripts/lint` passed, including Ruff,
Pyright, mypy,
and import checks. Unrelated formatter-only changes to the existing
report
  scripts are not included.
- The following suites passed under both Pydantic v2 and v1: 367 passed
and
  7 skipped in each environment.

```sh
python -m pytest -q \
  tests/api_resources/audio/test_speech.py \
  tests/api_resources/test_batches.py \
  tests/api_resources/test_files.py \
  tests/api_resources/test_responses.py \
  tests/lib/responses/test_responses.py::test_parse_method_in_sync \
  tests/lib/responses/test_responses.py::test_parse_method_definition_in_sync
```

The cleanup survives a fresh Castiron generation using the existing API
and
configuration inputs. The old and new pure-generated content hashes
match.

From a checkout of the public PR, reproduce the report with:

```sh
python3 scripts/castiron/custom_code_report.py report \
  --base 5ac1e03e1ae8f08acf6213b3e44772734dbb8e59 \
  --head "$(git rev-parse HEAD)" --fetch --require-head-hash --public \
  --out /tmp/castiron-generated-test-cleanup
```

Co-authored-by: apcha-oai <228803254+apcha-oai@users.noreply.github.com>
A
Alex Chang committed
351ef84dc25211ea871f60eb16a469a89d20e133
Parent: 5ac1e03
Committed by GitHub <noreply@github.com> on 8/20/2026, 7:35:21 PM