summaryrefslogtreecommitdiff
path: root/tests/admin_views/test_adminsite.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2018-12-07 17:52:28 -0500
committerTim Graham <timograham@gmail.com>2018-12-31 10:47:32 -0500
commit043bd709425149b8eff3fb821cba5c23aaebd0df (patch)
tree7624be405a6a6e5a041e2852251ef76e9d28fa7d /tests/admin_views/test_adminsite.py
parent1136d57f01ce3e3efab44163ccd7b3b34ec4207f (diff)
Updated test URL patterns to use path() and re_path().
Diffstat (limited to 'tests/admin_views/test_adminsite.py')
-rw-r--r--tests/admin_views/test_adminsite.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/admin_views/test_adminsite.py b/tests/admin_views/test_adminsite.py
index 86e0a357db..efee6f39c6 100644
--- a/tests/admin_views/test_adminsite.py
+++ b/tests/admin_views/test_adminsite.py
@@ -1,10 +1,9 @@
-from django.conf.urls import url
from django.contrib import admin
from django.contrib.admin.actions import delete_selected
from django.contrib.auth.models import User
from django.test import SimpleTestCase, TestCase, override_settings
from django.test.client import RequestFactory
-from django.urls import reverse
+from django.urls import path, reverse
from .models import Article
@@ -13,7 +12,7 @@ site.register(User)
site.register(Article)
urlpatterns = [
- url(r'^test_admin/admin/', site.urls),
+ path('test_admin/admin/', site.urls),
]