forked from CGM_Public/pretix_original
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(
|
raw_plugin_patterns.append(
|
||||||
url(r'', include(single_plugin_patterns, namespace=app.label))
|
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 '
|
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.',
|
'attribute. Support for maindomain_urls in plugins will be dropped in the future.',
|
||||||
DeprecationWarning)
|
DeprecationWarning)
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ for app in apps.get_app_configs():
|
|||||||
raw_plugin_patterns.append(
|
raw_plugin_patterns.append(
|
||||||
url(r'^(?P<event>[^/]+)/', include(urlmod.event_patterns, namespace=app.label))
|
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 '
|
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.',
|
'attribute. Support for subdomain_urls in plugins will be dropped in the future.',
|
||||||
DeprecationWarning)
|
DeprecationWarning)
|
||||||
|
|||||||
Reference in New Issue
Block a user