diff --git a/pagure/hooks/__init__.py b/pagure/hooks/__init__.py index b44cbed..d1d7215 100644 --- a/pagure/hooks/__init__.py +++ b/pagure/hooks/__init__.py @@ -74,7 +74,7 @@ class BaseHook(object): postreceive) @classmethod - def base_install(cls, repopaths, dbobj, hook_name, filein): # pragma: no cover + def base_install(cls, repopaths, dbobj, hook_name, filein): ''' Method called to install the hook for a project. :arg project: a ``pagure.model.Project`` object to which the hook @@ -106,7 +106,7 @@ class BaseHook(object): ) @classmethod - def base_remove(cls, repopaths, hook_name): # pragma: no cover + def base_remove(cls, repopaths, hook_name): ''' Method called to remove the hook of a project. :arg project: a ``pagure.model.Project`` object to which the hook diff --git a/tests/test_pagure_flask_ui_plugins_pagure_request_hook.py b/tests/test_pagure_flask_ui_plugins_pagure_request_hook.py index ec3bd34..a821bae 100644 --- a/tests/test_pagure_flask_ui_plugins_pagure_request_hook.py +++ b/tests/test_pagure_flask_ui_plugins_pagure_request_hook.py @@ -19,7 +19,6 @@ import os import pygit2 from mock import patch -from pagure.exceptions import FileNotFoundException sys.path.insert(0, os.path.join(os.path.dirname( os.path.abspath(__file__)), '..')) diff --git a/tests/test_pagure_flask_ui_plugins_pagure_ticket_hook.py b/tests/test_pagure_flask_ui_plugins_pagure_ticket_hook.py index 1cf1658..fcd8baa 100644 --- a/tests/test_pagure_flask_ui_plugins_pagure_ticket_hook.py +++ b/tests/test_pagure_flask_ui_plugins_pagure_ticket_hook.py @@ -19,7 +19,6 @@ import os import pygit2 from mock import patch -from pagure.exceptions import FileNotFoundException sys.path.insert(0, os.path.join(os.path.dirname( os.path.abspath(__file__)), '..'))