stratis-cli: add pytestCheckHook and pythonImportsCheck

This commit is contained in:
Nick Cao 2022-09-16 22:28:13 +08:00
parent 207e9aa1b3
commit 0fa2f2148b
No known key found for this signature in database

View file

@ -25,6 +25,18 @@ python3Packages.buildPythonApplication rec {
packaging
];
checkInputs = with python3Packages; [
pytestCheckHook
];
disabledTestPaths = [
# tests below require dbus daemon
"tests/whitebox/integration"
"tests/whitebox/monkey_patching"
];
pythonImportsCheck = [ "stratis_cli" ];
passthru.tests = nixosTests.stratis;
meta = with lib; {