wfuzz: switch to pytestCheckHook

This commit is contained in:
Fabian Affolter 2021-01-03 22:53:04 +01:00
parent b56672e501
commit 24ad2c84c8

View File

@ -12,6 +12,7 @@
, pycurl , pycurl
, pyparsing , pyparsing
, pytest , pytest
, pytestCheckHook
, setuptools , setuptools
, six , six
, stdenv , stdenv
@ -44,15 +45,15 @@ buildPythonPackage rec {
checkInputs = [ checkInputs = [
netaddr netaddr
pytest pytest
pytestCheckHook
] ++ lib.optionals isPy27 [ ] ++ lib.optionals isPy27 [
mock mock
]; ];
preCheck = "export HOME=$(mktemp -d)";
# The skipped tests are requiring a local web server # The skipped tests are requiring a local web server
checkPhase = '' pytestFlagsArray = [ "tests/test_{moduleman,filterintro,reqresp,api,clparser}.py" ];
HOME=$TMPDIR pytest \ pythonImportsCheck = [ "wfuzz" ];
tests/test_{moduleman,filterintro,reqresp,api,clparser}.py
'';
meta = with lib; { meta = with lib; {
description = "Web content fuzzer to facilitate web applications assessments"; description = "Web content fuzzer to facilitate web applications assessments";