Skip to content

Commit b3482d6

Browse files
committed
Updated tests for django backend
1 parent 2c55886 commit b3482d6

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

jsonrpc/tests/test_backend_django/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
'NAME': ':memory:',
99
}
1010
}
11+
JSONRPC_MAP_VIEW_ENABLED = True

jsonrpc/tests/test_backend_django/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def test_resource_map(self):
7070

7171
def test_method_not_allowed_prefix(self):
7272
response = self.client.get(
73-
'/prefix',
73+
'/prefix/',
7474
content_type='application/json',
7575
)
7676
self.assertEqual(response.status_code, 405)

jsonrpc/tests/test_backend_django/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33

44
urlpatterns = [
55
url(r'', include(api.urls)),
6-
url(r'prefix', include(api.urls)),
6+
url(r'^prefix/', include(api.urls)),
77
]

0 commit comments

Comments
 (0)