Adapt tests to a new get_graft_points() argument

Signed-off-by: Jiri Konecny <jkonecny@redhat.com>
This commit is contained in:
Jiri Konecny 2020-08-19 14:36:55 +02:00 committed by Lubomír Sedlář
parent 8d4fea7890
commit 40bbb4325a

View File

@ -665,7 +665,8 @@ class GetIsoContentsTest(helpers.PungiTestCase):
six.assertCountEqual(
self,
ggp.call_args_list,
[mock.call(self.compose, [os.path.join(self.topdir, x)]) for x in gp],
[mock.call(self.compose.paths.compose.topdir(),
[os.path.join(self.topdir, x)]) for x in gp],
)
self.assertEqual(len(wgp.call_args_list), 1)
self.assertEqual(wgp.call_args_list[0][0][0], gp_file)
@ -734,7 +735,8 @@ class GetIsoContentsTest(helpers.PungiTestCase):
six.assertCountEqual(
self,
ggp.call_args_list,
[mock.call(self.compose, [os.path.join(self.topdir, x)]) for x in gp],
[mock.call(self.compose.paths.compose.topdir(),
[os.path.join(self.topdir, x)]) for x in gp],
)
self.assertEqual(len(wgp.call_args_list), 1)
self.assertEqual(wgp.call_args_list[0][0][0], gp_file)
@ -799,7 +801,8 @@ class GetIsoContentsTest(helpers.PungiTestCase):
six.assertCountEqual(
self,
ggp.call_args_list,
[mock.call(self.compose, [os.path.join(self.topdir, x)]) for x in gp],
[mock.call(self.compose.paths.compose.topdir(),
[os.path.join(self.topdir, x)]) for x in gp],
)
self.assertEqual(len(wgp.call_args_list), 1)
self.assertEqual(wgp.call_args_list[0][0][0], gp_file)
@ -890,8 +893,10 @@ class GetIsoContentsTest(helpers.PungiTestCase):
six.assertCountEqual(
self,
ggp.call_args_list,
[mock.call(self.compose, [os.path.join(self.topdir, x)]) for x in gp]
+ [mock.call(self.compose, [bi_dir, iso_dir])],
[mock.call(self.compose.paths.compose.topdir(),
[os.path.join(self.topdir, x)]) for x in gp]
+ [mock.call(self.compose.paths.compose.topdir(),
[bi_dir, iso_dir])],
)
self.assertEqual(len(wgp.call_args_list), 1)
self.assertEqual(wgp.call_args_list[0][0][0], gp_file)