Merge pull request #154933 from fabaff/fix-homematic

python3Packages.homematicip: disable failing tests
This commit is contained in:
Fabian Affolter 2022-01-15 09:19:14 +01:00 committed by GitHub
commit 2ef62377b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,6 +7,7 @@
, fetchFromGitHub , fetchFromGitHub
, fetchpatch , fetchpatch
, pytestCheckHook , pytestCheckHook
, pythonAtLeast
, pythonOlder , pythonOlder
, pytest-aiohttp , pytest-aiohttp
, pytest-asyncio , pytest-asyncio
@ -54,11 +55,6 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
postPatch = ''
substituteInPlace homematicip/aio/connection.py \
--replace ", loop=self._loop" ""
'';
disabledTests = [ disabledTests = [
# Assert issues with datetime # Assert issues with datetime
"test_contact_interface_device" "test_contact_interface_device"
@ -82,6 +78,11 @@ buildPythonPackage rec {
"test_home_unknown_types" "test_home_unknown_types"
# Requires network access # Requires network access
"test_websocket" "test_websocket"
] ++ lib.optionals (pythonAtLeast "3.10") [
"test_connection_lost"
"test_user_disconnect_and_reconnect"
"test_ws_message"
"test_ws_no_pong"
]; ];
pythonImportsCheck = [ pythonImportsCheck = [