summaryrefslogtreecommitdiffstats
path: root/pkgs/servers/home-assistant/tests.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/servers/home-assistant/tests.nix')
-rw-r--r--pkgs/servers/home-assistant/tests.nix37
1 files changed, 3 insertions, 34 deletions
diff --git a/pkgs/servers/home-assistant/tests.nix b/pkgs/servers/home-assistant/tests.nix
index 375f05501a50..75b63ec99a64 100644
--- a/pkgs/servers/home-assistant/tests.nix
+++ b/pkgs/servers/home-assistant/tests.nix
@@ -34,11 +34,6 @@ let
};
extraDisabledTestPaths = {
- tado = [
- # tado/test_{climate,water_heater}.py: Tries to connect to my.tado.com
- "tests/components/tado/test_climate.py"
- "tests/components/tado/test_water_heater.py"
- ];
};
extraDisabledTests = {
@@ -46,21 +41,9 @@ let
# homeassistant.components.roku.media_player:media_player.py:428 Media type music is not supported with format None (mime: audio/x-matroska)
"test_services_play_media_audio"
];
- rfxtrx = [
- # bytearrray mismatch
- "test_rfy_cover"
- ];
- zha = [
- # 'manual_pick_radio_type' == 'choose_serial_port'
- "test_options_flow_migration_reset_old_adapter"
- ];
};
extraPytestFlagsArray = {
- asuswrt = [
- # Sandbox network limitations, fails with unexpected error
- "--deselect tests/components/asuswrt/test_config_flow.py::test_on_connect_failed"
- ];
dnsip = [
# AssertionError: assert <FlowResultType.FORM: 'form'> == <FlowResultTy...create_entry'>
"--deselect tests/components/dnsip/test_config_flow.py::test_options_flow"
@@ -69,6 +52,9 @@ let
# Flaky: AssertionError: assert '0.0' == '12.0'
"--deselect tests/components/history_stats/test_sensor.py::test_end_time_with_microseconds_zeroed"
];
+ logbook = [
+ "--deselect tests/components/logbook/test_websocket_api.py::test_recorder_is_far_behind "
+ ];
modem_callerid = [
# aioserial mock produces wrong state
"--deselect tests/components/modem_callerid/test_init.py::test_setup_entry"
@@ -77,20 +63,6 @@ let
# "TypeError: object Mock can't be used in 'await' expression
"--deselect tests/components/unifiprotect/test_repairs.py::test_ea_warning_fix"
];
- skybell = [
- # Sandbox network limitations: Cannot connect to host cloud.myskybell.com:443
- "--deselect tests/components/skybell/test_config_flow.py::test_flow_user_unknown_error"
- ];
- stream = [
- # Tries to write to /example and gets "Permission denied"
- "--deselect tests/components/stream/test_recorder.py::test_record_lookback"
- "--deselect tests/components/stream/test_recorder.py::test_recorder_log"
- "--deselect tests/components/stream/test_worker.py::test_get_image"
- ];
- zha = [
- # AssertionError: assert 'manual_pick_radio_type' == 'choose_serial_port'
- "--deselect tests/components/zha/test_config_flow.py::test_options_flow_restarts_running_zha_if_cancelled"
- ];
};
in lib.listToAttrs (map (component: lib.nameValuePair component (
home-assistant.overridePythonAttrs (old: {
@@ -121,9 +93,6 @@ in lib.listToAttrs (map (component: lib.nameValuePair component (
meta = old.meta // {
broken = lib.elem component [
- # all tests are skipped
- # https://github.com/home-assistant/core/blob/dev/tests/components/homeassistant_hardware/test_silabs_multiprotocol_addon.py#L23
- "homeassistant_hardware"
];
# upstream only tests on Linux, so do we.
platforms = lib.platforms.linux;