python3Packages.mkdocs: get tests passing
This commit is contained in:
parent
10d33eee2d
commit
ba480d7722
1 changed files with 9 additions and 6 deletions
|
@ -58,15 +58,18 @@ buildPythonPackage rec {
|
|||
checkInputs = [
|
||||
Babel
|
||||
mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pytestFlagsArray = [ "mkdocs/tests/*.py" ];
|
||||
|
||||
disabledTests = [
|
||||
# Don't start a test server
|
||||
"testing_server"
|
||||
];
|
||||
checkPhase = ''
|
||||
set -euo pipefail
|
||||
|
||||
runHook preCheck
|
||||
|
||||
python -m unittest discover -v -p '*tests.py' mkdocs --top-level-directory .
|
||||
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "mkdocs" ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue