Fix spelling mistake in patterns that are ignored in coverage check
- Legacy-Id: 7080
This commit is contained in:
parent
5e7d8c6c08
commit
954c8fcedb
|
@ -121,7 +121,7 @@ def check_url_coverage():
|
|||
# skip some patterns that we don't bother with
|
||||
def ignore_pattern(regex, pattern):
|
||||
import django.views.static
|
||||
return (regex in ("^_test500/",)
|
||||
return (regex in ("^_test500/$",)
|
||||
or regex.startswith("^admin/")
|
||||
or getattr(pattern.callback, "__name__", "") == "RedirectView"
|
||||
or getattr(pattern.callback, "__name__", "") == "TemplateView"
|
||||
|
|
Loading…
Reference in a new issue