Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane committed Jun 3, 2024
1 parent 6fd65a7 commit 9582aa0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/functional/a/abstract/abstract_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import abc


class Abstract:
class Abstract(abc.ABC):
def aaaa(self):
"""should be overridden in concrete class"""
raise NotImplementedError()
Expand All @@ -16,7 +16,7 @@ def bbbb(self):
raise NotImplementedError()


class AbstractB(Abstract):
class AbstractB(Abstract, abc.ABC):
"""Abstract class.
this class is checking that it does not output an error msg for
Expand Down Expand Up @@ -49,7 +49,7 @@ class ConcreteA(AbstractC): # [abstract-method]
Incomplete concrete class.
Should trigger a warning for unimplemented abstract
methods while not directly inheriting from abc.ABC.
methods, for lack of explicit abc.ABC inheritance.
"""


Expand All @@ -58,7 +58,7 @@ class ConcreteB(Abstract): # [abstract-method]
Incomplete concrete class.
Should trigger a warning for unimplemented abstract
methods while not directly inheriting from abc.ABC.
methods, for lack of explicit abc.ABC inheritance.
"""

def aaaa(self):
Expand All @@ -69,7 +69,8 @@ class ConcreteC(AbstractC):
"""
Complete concrete class
Should not trigger a warning as all abstract methods are implemented.
Should not trigger a warning as all
abstract methods are implemented.
"""
def aaaa(self):
"""overridden form Abstract"""
Expand Down

0 comments on commit 9582aa0

Please sign in to comment.