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:
parent
2612250311
commit
4775c308fa
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue