parent
87aa8eb17b
commit
d67c36151b
27 changed files with 84 additions and 71 deletions
|
|
@ -47,7 +47,7 @@ class TestEditPermission(unittest.TestCase):
|
|||
description = ['test-description']
|
||||
with self.assertRaises(koji.GenericError) as ex:
|
||||
self.exports.editPermission(self.perm_name, description=description)
|
||||
self.assertEqual(f"Invalid type for value '{description}': {type(description)}",
|
||||
str(ex.exception))
|
||||
self.assertEqual(f"Invalid type for value '{description}': {type(description)}, "
|
||||
f"expected type <class 'str'>", str(ex.exception))
|
||||
self.update_processor.assert_not_called()
|
||||
self.context.session.assertPerm.assert_called_with('admin')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue