mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Do not count coverage for a deprecated code path
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user