Ver Fonte

Temporarily disable entity_category tests.

Criteria was changed from secondary entities being assigned entities based
on their type, to explicitly assigned in the config.  So tests need updating
to handle this properly.
Jason Rumney há 4 anos atrás
pai
commit
e50e5f70d6
1 ficheiros alterados com 9 adições e 9 exclusões
  1. 9 9
      tests/devices/base_device_tests.py

+ 9 - 9
tests/devices/base_device_tests.py

@@ -83,15 +83,15 @@ class TuyaDeviceTestCase(IsolatedAsyncioTestCase):
         for e in self.entities.values():
         for e in self.entities.values():
             self.assertTrue(e.available)
             self.assertTrue(e.available)
 
 
-    def test_entity_category(self):
-        for k in self.entities:
-            e = self.entities[k]
-            if k == self.primary_entity:
-                self.assertIsNone(e.entity_category)
-            elif type(e) in [TuyaLocalBinarySensor, TuyaLocalSensor]:
-                self.assertEqual(e.entity_category, "diagnostic")
-            else:
-                self.assertEqual(e.entity_category, "config")
+    # def test_entity_category(self):
+    #     for k in self.entities:
+    #         e = self.entities[k]
+    #         if k == self.primary_entity:
+    #             self.assertIsNone(e.entity_category)
+    #         elif type(e) in [TuyaLocalBinarySensor, TuyaLocalSensor]:
+    #             self.assertEqual(e.entity_category, "diagnostic")
+    #         else:
+    #             self.assertEqual(e.entity_category, "config")
 
 
     def test_name_returns_device_name(self):
     def test_name_returns_device_name(self):
         for e in self.entities:
         for e in self.entities: