diff --git a/progit/lib/__init__.py b/progit/lib/__init__.py index 3a4e4e3..a4d7b9c 100644 --- a/progit/lib/__init__.py +++ b/progit/lib/__init__.py @@ -251,7 +251,7 @@ def add_issue_dependency(session, issue, issue_blocked, user, ticketfolder): return 'Dependency added' -def remove_issue_tags(session, project, tags): +def remove_tags(session, project, tags): ''' Removes the specified tag of a project. ''' if not isinstance(tags, list): diff --git a/progit/ui/issues.py b/progit/ui/issues.py index ce61033..da1eddd 100644 --- a/progit/ui/issues.py +++ b/progit/ui/issues.py @@ -201,7 +201,7 @@ def remove_tag(repo, username=None): tags = form.tag.data tags = [tag.strip() for tag in tags.split(',')] - msgs = progit.lib.remove_issue_tags(SESSION, repo, tags) + msgs = progit.lib.remove_tags(SESSION, repo, tags) try: SESSION.commit() diff --git a/tests/test_progit_lib.py b/tests/test_progit_lib.py index d219322..37314f7 100644 --- a/tests/test_progit_lib.py +++ b/tests/test_progit_lib.py @@ -321,8 +321,8 @@ class ProgitLibtests(tests.Modeltests): @patch('progit.lib.git.update_git_ticket') @patch('progit.lib.notify.send_email') - def test_remove_issue_tags(self, p_send_email, p_ugt): - """ Test the remove_issue_tags of progit.lib. """ + def test_remove_tags(self, p_send_email, p_ugt): + """ Test the remove_tags of progit.lib. """ p_send_email.return_value = True p_ugt.return_value = True @@ -332,12 +332,12 @@ class ProgitLibtests(tests.Modeltests): self.assertRaises( progit.exceptions.ProgitException, - progit.lib.remove_issue_tags, + progit.lib.remove_tags, session=self.session, project=repo, tags='foo') - msgs = progit.lib.remove_issue_tags( + msgs = progit.lib.remove_tags( session=self.session, project=repo, tags='tag1')