Skip to content

Commit

Permalink
Removed urlpatterns_reverse dependency in urlpatterns tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
xavfernandez authored and timgraham committed Nov 30, 2018
1 parent c3bbf1f commit 9d334e0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions tests/urlpatterns/included_urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from django.urls import path

from . import views

urlpatterns = [
path('extra/<extra>/', views.empty_view, name='inner-extra'),
]
2 changes: 1 addition & 1 deletion tests/urlpatterns/path_urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
path('articles/<int:year>/<int:month>/<int:day>/', views.empty_view, name='articles-year-month-day'),
path('users/', views.empty_view, name='users'),
path('users/<id>/', views.empty_view, name='user-with-id'),
path('included_urls/', include('urlpatterns_reverse.included_urls')),
path('included_urls/', include('urlpatterns.included_urls')),
path('<lang>/<path:url>/', views.empty_view, name='lang-and-path'),
]

0 comments on commit 9d334e0

Please sign in to comment.