From 0fa2f2148b05574bc860aaeea49c42f904e8423a Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Fri, 16 Sep 2022 22:28:13 +0800 Subject: [PATCH] stratis-cli: add pytestCheckHook and pythonImportsCheck --- pkgs/tools/filesystems/stratis-cli/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkgs/tools/filesystems/stratis-cli/default.nix b/pkgs/tools/filesystems/stratis-cli/default.nix index 813ecfa22c6d..145d570b6a8c 100644 --- a/pkgs/tools/filesystems/stratis-cli/default.nix +++ b/pkgs/tools/filesystems/stratis-cli/default.nix @@ -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; {