3
0
Fork 0
forked from mirrors/nixpkgs

pytest-httpbin: drop assertion that doesn't hold anymore

In Flask 2.1.0 Location headers were made relative and alot of packages
still assume absolute values. That breaks the assertion, so we drop it.
This commit is contained in:
Martin Weinelt 2022-04-03 23:20:31 +02:00
parent 2612250311
commit 4775c308fa

View file

@ -28,6 +28,12 @@ buildPythonPackage rec {
six
];
preCheck = ''
# Remove assertion that doesn't hold for Flask 2.1.0
substituteInPlace tests/test_server.py \
--replace "assert response.headers['Location'].startswith('https://')" ""
'';
checkInputs = [
pytestCheckHook
requests