The GitHub Actions job "Tests (AMD)" on airflow.git/aip99-doc-loader has 
succeeded.
Run started by GitHub user kaxil (triggered by kaxil).

Head commit for run:
79e74b336689a23b24c6e6b7f918af6cdee28498 / Kaxil Naik <[email protected]>
Drop test-only ``__str__`` overrides that tripped CI mypy

CI's MyPy providers job flagged the `mock.__str__ = lambda ...` and
`mock.__str__.return_value = ...` patterns in TestCloudUriDispatch with
``[method-assign]`` -- mypy treats `__str__` as a real method that
shouldn't be reassigned at the instance level, even on a MagicMock.

The tests only assert on `file_name`, the dispatched call args, and text
content; they never check `metadata.file_path` (which is what `str(path)`
would feed). Removing the overrides keeps the assertions intact and
lets mypy pass.

Report URL: https://github.com/apache/airflow/actions/runs/26167402713

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to