1 diff -ur a/compat/tests/settings.py b/compat/tests/settings.py
2 --- a/compat/tests/settings.py 2020-03-06 15:32:07.548482597 +0100
3 +++ b/compat/tests/settings.py 2020-03-06 22:19:25.422934249 +0100
5 'django.contrib.admin',
7 'django.contrib.contenttypes',
8 + 'django.contrib.messages',
10 'compat.tests.test_app',
13 -MIDDLEWARE_CLASSES = (
15 'django.contrib.sessions.middleware.SessionMiddleware',
16 'django.middleware.common.CommonMiddleware',
17 'django.middleware.csrf.CsrfViewMiddleware',
19 'django.template.context_processors.i18n',
20 'django.template.context_processors.tz',
21 'django.template.context_processors.request',
22 + 'django.contrib.messages.context_processors.messages',
25 'django.template.loaders.filesystem.Loader',
26 diff -ur a/compat/tests/test_compat.py b/compat/tests/test_compat.py
27 --- a/compat/tests/test_compat.py 2020-03-06 15:32:07.548482597 +0100
28 +++ b/compat/tests/test_compat.py 2020-03-06 15:37:39.202835075 +0100
30 from django.core.serializers.json import DjangoJSONEncoder
31 from django.test import TestCase, SimpleTestCase
32 from django.test.client import RequestFactory
33 -from django.contrib.auth.views import logout
34 +from django.contrib.auth.views import auth_logout
36 from django.urls import NoReverseMatch
39 Tests that passing a view name to ``resolve_url`` will result in the
40 URL path mapping to that view name.
42 - resolved_url = resolve_url(logout)
43 + resolved_url = resolve_url(auth_logout)
44 self.assertEqual('/accounts/logout/', resolved_url)
47 diff -ur a/compat/tests/urls.py b/compat/tests/urls.py
48 --- a/compat/tests/urls.py 2020-03-06 15:32:07.548482597 +0100
49 +++ b/compat/tests/urls.py 2020-03-06 15:34:25.962377799 +0100
51 from django.contrib.auth import views
54 - url(r'^accounts/logout/$', views.logout, name='logout'),
55 + url(r'^accounts/logout/$', views.auth_logout, name='logout'),