Build failure due to either python3-django bump or python3-ujson bump
Job #5844489845 failed for 265aae4b:
Both python3-django and python3-ujson have been bumped recently. The error is:
============================= test session starts ==============================
platform linux -- Python 3.11.7, pytest-7.4.3, pluggy-1.3.0
rootdir: /builds/kalilinux/packages/json-log-formatter/debian/output/source_dir
collected 29 items / 1 deselected / 28 selected
tests.py ............F...............
=================================== FAILURES ===================================
______ UjsonLibTest.test_django_wsgi_request_is_serialized_as_empty_list _______
self = <tests.UjsonLibTest testMethod=test_django_wsgi_request_is_serialized_as_empty_list>
def test_django_wsgi_request_is_serialized_as_empty_list(self):
request = WSGIRequest({
'PATH_INFO': 'bogus',
'REQUEST_METHOD': 'bogus',
'CONTENT_TYPE': 'text/html; charset=utf8',
'wsgi.input': BytesIO(b''),
})
logger.log(level=logging.ERROR, msg='Django response error', extra={
'status_code': 500,
'request': request
})
json_record = json.loads(log_buffer.getvalue())
if 'status_code' in json_record:
self.assertEqual(json_record['status_code'], 500)
if 'request' in json_record:
> self.assertEqual(json_record['request'], [])
E AssertionError: {'environ': {'PATH_INFO': 'bogus', 'REQUE[625 chars]None} != []
tests.py:216: AssertionError
------------------------------ Captured log call -------------------------------
ERROR test:tests.py:208 Django response error
=========================== short test summary info ============================
FAILED tests.py::UjsonLibTest::test_django_wsgi_request_is_serialized_as_empty_list - AssertionError: {'environ': {'PATH_INFO': 'bogus', 'REQUE[625 chars]None} != []
================== 1 failed, 27 passed, 1 deselected in 0.17s ==================