From 6630e78bd6e00a9906f5a8e2ddd29926c08efd87 Mon Sep 17 00:00:00 2001 From: yamijuan <juandgoc@gmail.com> Date: Mon, 19 Feb 2018 12:56:55 -0500 Subject: [PATCH] Changed # noqa to # pragma: no cover --- menu_generator/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/menu_generator/utils.py b/menu_generator/utils.py index b30051e..d761bdc 100755 --- a/menu_generator/utils.py +++ b/menu_generator/utils.py @@ -30,7 +30,7 @@ def clean_app_config(app_path): new_app = '.'.join(app_split[:-2]) if new_app in apps_names: return new_app - else: # noqa + else: # pragma: no cover raise ImproperlyConfigured( "The application {0} is not in the configured apps or does" + "not have the pattern app.apps.AppConfig".format(app_path) -- GitLab