This commit is contained in:
Tomas Kopecek 2020-03-16 09:30:36 +01:00
parent 9ef57c0f82
commit 09da0aa1e4

View file

@ -104,7 +104,7 @@ class TestDistRepo(unittest.TestCase):
ret = exports.distRepo('tag', 'keys')
session.hasPerm.has_calls(mock.call('dist_repo'), mock.call('admin'))
assert_policy.assert_called_once_with('dist-repo', {'tag': 'tag', 'keys': 'keys'})
assert_policy.assert_called_once_with('dist_repo', {'tag': 'tag', 'keys': 'keys'})
dist_repo_init.assert_called_once()
make_task.assert_called_once()
self.assertEquals(ret, make_task.return_value)