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>