Просмотр исходного кода

Remove test for matching translations between common items

Most of the items we wanted to check were removed.  Only name remains
in common between these two config_flow nodes, so the chances of mismatch
are much reduced.

Mainly this test was there to detect when a new item had been added but was only
added to one of the lists.
Jason Rumney 3 лет назад
Родитель
Сommit
a1a3f4fe85
1 измененных файлов с 0 добавлено и 16 удалено
  1. 0 16
      tests/test_translations.py

+ 0 - 16
tests/test_translations.py

@@ -43,22 +43,6 @@ def get_devices():
         yield TuyaDeviceConfig(device)
 
 
-@pytest.mark.parametrize("translations", get_translations())
-def test_config_and_options_match(translations):
-
-    config = translations["config"]["step"]["choose_entities"]["data"]
-    options = translations["options"]["step"]["user"]["data"]
-
-    # remove expected differences
-    config.pop("name", None)
-    options.pop("host", None)
-    options.pop("local_key", None)
-
-    test = TestCase()
-    test.maxDiff = None
-    test.assertDictEqual(config, options)
-
-
 def subtest_entity_covered(entity):
     strings = get_english()
     TestCase().assertIn(