diff --git a/tests/test_pagure_lib.py b/tests/test_pagure_lib.py index b874431..82269a5 100644 --- a/tests/test_pagure_lib.py +++ b/tests/test_pagure_lib.py @@ -2858,6 +2858,18 @@ class PagureLibtests(tests.Modeltests): self.assertEqual(project.groups[0].group_name, 'foo') self.assertEqual(project.committer_groups[0].group_name, 'foo') + # Update the access of group in the project + msg = pagure.lib.add_group_to_project( + session=self.session, + project=project, + new_group='foo', + user='pingou', + access='ticket' + ) + self.session.commit() + self.assertEqual(msg, 'Group access updated') + self.assertEqual(project.groups[0].group_name, 'foo') + def test_update_watch_status(self): """ Test the update_watch_status method of pagure.lib. """ tests.create_projects(self.session)