Pass compose to SCM wrappers

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2019-10-07 12:26:22 +02:00
parent b05295c202
commit 39e8f6f710
11 changed files with 23 additions and 21 deletions

View file

@ -460,8 +460,8 @@ class GetExtraFilesTest(helpers.PungiTestCase):
get_file.call_args_list,
[
mock.call(
cfg, os.path.join(self.dir, "legalese"), logger=self.compose._logger
)
cfg, os.path.join(self.dir, "legalese"), compose=self.compose
),
],
)
self.assertEqual(
@ -491,7 +491,7 @@ class GetExtraFilesTest(helpers.PungiTestCase):
get_dir.call_args_list,
[
mock.call(
cfg, os.path.join(self.dir, "foo"), logger=self.compose._logger
cfg, os.path.join(self.dir, "foo"), compose=self.compose
)
],
)
@ -525,9 +525,9 @@ class GetExtraFilesTest(helpers.PungiTestCase):
mock.call(
cfg1,
os.path.join(self.dir, "legalese"),
logger=self.compose._logger,
compose=self.compose,
),
mock.call(cfg2, self.dir, logger=self.compose._logger),
mock.call(cfg2, self.dir, compose=self.compose),
],
)
self.assertEqual(