From eb53531b6f8d13dc0d9a178db23b322bb4eb0c58 Mon Sep 17 00:00:00 2001 From: Graham Bennett Date: Sat, 20 Feb 2021 00:02:53 +0000 Subject: [PATCH] teslajsonpy: fix tests teslajsonpy has some dependencies between tests, which were masked upstream but caused failures in nixpkgs because all the asyncio tests were skipped. Tests pass as they do upstream with pytest-asyncio added. Test isolation issue is being dealt with here: https://github.com/zabuldon/teslajsonpy/issues/121. --- .../python-modules/teslajsonpy/default.nix | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/teslajsonpy/default.nix b/pkgs/development/python-modules/teslajsonpy/default.nix index 46c8a2853b5..59af2b33d2b 100644 --- a/pkgs/development/python-modules/teslajsonpy/default.nix +++ b/pkgs/development/python-modules/teslajsonpy/default.nix @@ -5,6 +5,7 @@ , buildPythonPackage , fetchFromGitHub , fetchpatch +, pytest-asyncio , pytestCheckHook , wrapt }: @@ -35,15 +36,11 @@ buildPythonPackage rec { wrapt ]; - checkInputs = [ pytestCheckHook ]; - - # Not all Home Assistant related check pass - # https://github.com/zabuldon/teslajsonpy/issues/121 - # https://github.com/zabuldon/teslajsonpy/pull/124 - disabledTests = [ - "test_values_on_init" - "test_get_value_on_init" + checkInputs = [ + pytest-asyncio + pytestCheckHook ]; + pythonImportsCheck = [ "teslajsonpy" ]; meta = with lib; {