python3Packages.mkdocs: get tests passing

This commit is contained in:
Phillip Cloud 2022-01-24 09:48:26 -05:00
parent 10d33eee2d
commit ba480d7722
No known key found for this signature in database
GPG key ID: D908212070FD785E

View file

@ -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" ];