Disable abstract-class-instantiated for smoketests

These tests are actually checking that the classes will error out if
they are still abstracted and instantiated
This commit is contained in:
Toshio Kuratomi 2017-07-25 15:10:58 -07:00
parent 225fa5d092
commit 802c9efaa3
2 changed files with 4 additions and 4 deletions

View file

@ -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):

View file

@ -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):