[future bug] Test suite might fail when we upgrade Flask package
A potential bug in the test suite might be born when we move to newer versions of Python (e.g., py3.9) and upgrade the package dependencies.
Namely, Flask
depends on werkzeug
, which from versions >= 2.1
(AFAIU) requires an empty JSON data structure to be passed with the GET
requests of type Content-Type: application/json
, failing otherwise.
Fix (easy): we need to change all lines of the form requests.post('
http://...:.../
...')
to requests.post('
http://...:.../
...', json={})
See fix example here: https://gitlab.cern.ch/scouting-demonstrator/scone/-/blob/glazzari/test/PyHAL_support-rhel8build/test.py?ref_type=heads
References: