From 4b9021644ca2f127ea4b17fdc4cba58eeb573132 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 21 Mar 2021 10:18:43 +0100 Subject: [PATCH] python3Packages.aioresponses: update test part --- .../python-modules/aioresponses/default.nix | 25 +++++++++++-------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/aioresponses/default.nix b/pkgs/development/python-modules/aioresponses/default.nix index b1fbb79b26f..2a3a2e60be7 100644 --- a/pkgs/development/python-modules/aioresponses/default.nix +++ b/pkgs/development/python-modules/aioresponses/default.nix @@ -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";