repoclosure: Add test for repoclosure in test phase
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
56932f9067
commit
95fc0fa4ab
2 changed files with 48 additions and 9 deletions
|
|
@ -30,6 +30,10 @@ class PungiTestCase(unittest.TestCase):
|
|||
|
||||
|
||||
class MockVariant(mock.Mock):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(MockVariant, self).__init__(*args, **kwargs)
|
||||
self.parent = kwargs.get('parent', None)
|
||||
|
||||
def __str__(self):
|
||||
return self.uid
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue