Merge pull request #147430 from fabaff/fix-requests-cache

python3Packages.requests-cache: disable flaky tests
This commit is contained in:
Fabian Affolter 2021-11-26 00:34:10 +01:00 committed by GitHub
commit e0e4c0ec4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,10 +55,19 @@ buildPythonPackage rec {
timeout-decorator timeout-decorator
]; ];
# Integration tests require local DBs pytestFlagsArray = [
pytestFlagsArray = [ "tests/unit" ]; # Integration tests require local DBs
"tests/unit"
];
pythonImportsCheck = [ "requests_cache" ]; disabledTests = [
# Tests are flaky in the sandbox
"test_remove_expired_responses"
];
pythonImportsCheck = [
"requests_cache"
];
meta = with lib; { meta = with lib; {
description = "Persistent cache for requests library"; description = "Persistent cache for requests library";