Do not count coverage for a deprecated code path

This commit is contained in:
Raphael Michel
2016-09-20 12:30:12 +02:00
parent f73dea55a1
commit 497663d0d8
2 changed files with 2 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ for app in apps.get_app_configs():
raw_plugin_patterns.append(
url(r'', include(single_plugin_patterns, namespace=app.label))
)
elif importlib.util.find_spec(app.name + '.maindomain_urls'):
elif importlib.util.find_spec(app.name + '.maindomain_urls'): # noqa
warnings.warn('Please put your config in an \'urls\' module using the urlpatterns and event_patterns '
'attribute. Support for maindomain_urls in plugins will be dropped in the future.',
DeprecationWarning)

View File

@@ -25,7 +25,7 @@ for app in apps.get_app_configs():
raw_plugin_patterns.append(
url(r'^(?P<event>[^/]+)/', include(urlmod.event_patterns, namespace=app.label))
)
elif importlib.util.find_spec(app.name + '.subdomain_urls'):
elif importlib.util.find_spec(app.name + '.subdomain_urls'): # noqa
warnings.warn('Please put your config in an \'urls\' module using the event_patterns '
'attribute. Support for subdomain_urls in plugins will be dropped in the future.',
DeprecationWarning)