mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-29 22:01:27 -07:00
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:
parent
225fa5d092
commit
802c9efaa3
2 changed files with 4 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue