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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user