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.
This commit is contained in:
Graham Bennett 2021-02-20 00:02:53 +00:00
parent a86974cf90
commit eb53531b6f

View file

@ -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; {