Disable abstract-class-instantiated for smoketests

These tests are actually checking that the classes will error out if
they are still abstracted and instantiated
pull/27306/head
Toshio Kuratomi 7 years ago
parent 225fa5d092
commit 802c9efaa3

@ -78,14 +78,14 @@ class TestAbstractClass(unittest.TestCase):
class CacheModule1(BaseCacheModule):
pass
with self.assertRaises(TypeError):
CacheModule1()
CacheModule1() # pylint: disable=abstract-class-instantiated
class CacheModule2(BaseCacheModule):
def get(self, key):
super(CacheModule2, self).get(key)
with self.assertRaises(TypeError):
CacheModule2()
CacheModule2() # pylint: disable=abstract-class-instantiated
def test_subclass_success(self):
class CacheModule3(BaseCacheModule):

@ -56,14 +56,14 @@ class TestConnectionBaseClass(unittest.TestCase):
class ConnectionModule1(ConnectionBase):
pass
with self.assertRaises(TypeError):
ConnectionModule1()
ConnectionModule1() # pylint: disable=abstract-class-instantiated
class ConnectionModule2(ConnectionBase):
def get(self, key):
super(ConnectionModule2, self).get(key)
with self.assertRaises(TypeError):
ConnectionModule2()
ConnectionModule2() # pylint: disable=abstract-class-instantiated
def test_subclass_success(self):
class ConnectionModule3(ConnectionBase):

Loading…
Cancel
Save