python3Packages.aioresponses: update test part

This commit is contained in:
Fabian Affolter 2021-03-21 10:18:43 +01:00
parent b8a4d564f0
commit 4b9021644c

View file

@ -1,12 +1,12 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, pbr
, aiohttp
, ddt
, asynctest
, pytest
, buildPythonPackage
, ddt
, fetchPypi
, pbr
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
@ -30,13 +30,16 @@ buildPythonPackage rec {
checkInputs = [
asynctest
ddt
pytest
pytestCheckHook
];
# Skip a test which makes requests to httpbin.org
checkPhase = ''
pytest -k "not (test_address_as_instance_of_url_combined_with_pass_through or test_pass_through_with_origin_params)"
'';
disabledTests = [
# Skip a test which makes requests to httpbin.org
"test_address_as_instance_of_url_combined_with_pass_through"
"test_pass_through_with_origin_params"
];
pythonImportsCheck = [ "aioresponses" ];
meta = {
description = "A helper to mock/fake web requests in python aiohttp package";