Fix: Test failures in Python workflow matrix jobs 36/73636/1
authorModeSevenIndustrialSolutions <mwatkins@linuxfoundation.org>
Thu, 11 Sep 2025 14:54:20 +0000 (15:54 +0100)
committerModeSevenIndustrialSolutions <mwatkins@linuxfoundation.org>
Thu, 11 Sep 2025 14:54:20 +0000 (15:54 +0100)
commit594f52de1e6afba100aa74ecff3ce0f9edaf8693
treec83edb9c8ac40a0cbf68f4dd95a3266c8a5080ad
parent99321dbe17ddfbdb6168cdf2c77760ba2401a75a
Fix: Test failures in Python workflow matrix jobs

Only Python 3.9 tests passed.

Fixes these failures:

FAILED tests/test_api_client.py::test_patch - requests.exceptions.ChunkedEncodingError: ('Connection broken: IncompleteRead(20 bytes read, -20 more expected)', IncompleteRead(20 bytes read, -20 more expected))
FAILED tests/test_rtd.py::test_project_version_update - requests.exceptions.ChunkedEncodingError: ('Connection broken: IncompleteRead(16 bytes read, -16 more expected)', IncompleteRead(16 bytes read, -16 more expected))

Both changes fixed the same issue: tests were incorrectly using HTTP 204 (No Content) status codes while trying to return JSON response bodies, which violates HTTP specifications and caused chunked encoding errors in newer versions of the HTTP libraries.

Change-Id: If22a885ff8122ffba84e05f57543a9c0b3895e95
Signed-off-by: ModeSevenIndustrialSolutions <mwatkins@linuxfoundation.org>
tests/test_api_client.py
tests/test_rtd.py