소스 검색

Translation tests: deprecated entities no longer require translation.

The code was simplified when old deprecated entities were removed to no
longer treat the disable deprecated entities by default.  So these tests
are not needed, and were commented out in case the behaviour is brought back.
Jason Rumney 3 년 전
부모
커밋
5ac6fef3eb
1개의 변경된 파일18개의 추가작업 그리고 18개의 파일을 삭제
  1. 18 18
      tests/test_translations.py

+ 18 - 18
tests/test_translations.py

@@ -43,21 +43,21 @@ def get_devices():
         yield TuyaDeviceConfig(device)
 
 
-def subtest_entity_covered(entity):
-    strings = get_english()
-    TestCase().assertIn(
-        entity.config_id,
-        strings,
-        f"{entity._device.config}: {entity.config_id} is missing a translation",
-    )
-
-
-@pytest.mark.parametrize("device", get_devices())
-def test_device_covered(device):
-    entity = device.primary_entity
-    if entity.deprecated:
-        subtest_entity_covered(entity)
-
-    for entity in device.secondary_entities():
-        if entity.deprecated:
-            subtest_entity_covered(entity)
+# def subtest_entity_covered(entity):
+#     strings = get_english()
+#     TestCase().assertIn(
+#         entity.config_id,
+#         strings,
+#         f"{entity._device.config}: {entity.config_id} is missing a translation",
+#     )
+
+
+# @pytest.mark.parametrize("device", get_devices())
+# def test_device_covered(device):
+#     entity = device.primary_entity
+#     if entity.deprecated:
+#         subtest_entity_covered(entity)
+
+#     for entity in device.secondary_entities():
+#         if entity.deprecated:
+#             subtest_entity_covered(entity)