- Unittests are fixed
This commit is contained in:
parent
d8b7f9210e
commit
38cc2f79a0
@ -375,15 +375,15 @@ class TestVolumeIdGenerator(unittest.TestCase):
|
||||
],
|
||||
"image_volid_layered_product_formats": [],
|
||||
"volume_id_substitutions": {},
|
||||
"restricted_volid": False,
|
||||
}
|
||||
variant = mock.Mock(uid="Server", type="variant")
|
||||
c = compose.Compose(conf, self.tmp_dir)
|
||||
|
||||
with self.assertRaises(ValueError) as ctx:
|
||||
util.get_volid(c, "x86_64", variant, disc_type=False)
|
||||
volid = util.get_volid(c, "x86_64", variant, disc_type=False)
|
||||
self.assertEqual(len(volid), 32)
|
||||
pass
|
||||
|
||||
self.assertIn("bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", str(ctx.exception))
|
||||
self.assertIn("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", str(ctx.exception))
|
||||
|
||||
@mock.patch("pungi.compose.ComposeInfo")
|
||||
def test_apply_substitutions(self, ci):
|
||||
|
Loading…
Reference in New Issue
Block a user