-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
faa4cd8
commit 63f08cb
Showing
4 changed files
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ | |
'tests', | ||
], | ||
MIDDLEWARE_CLASSES=[], | ||
ROOT_URLCONF='taggit_selectize.urls', | ||
) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
from django.conf.urls import * | ||
from django.urls import path | ||
|
||
from .views import get_tags_recommendation | ||
|
||
urlpatterns = [ | ||
url(r'^$', get_tags_recommendation, name='tags_recommendation'), | ||
path('', get_tags_recommendation, name='tags_recommendation'), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from django.test import TestCase | ||
from django.urls import reverse | ||
|
||
|
||
class TestUrls(TestCase): | ||
def test_urls(self): | ||
response = self.client.get(reverse('tags_recommendation')) | ||
self.assertEqual(response.status_code, 200) | ||
self.assertEqual(response.request['PATH_INFO'], '/') |