Skip to content

Commit a46271e

Browse files
author
Emmanouil Konstantinidis
committed
Coverage 100% ✨
1 parent 437cffd commit a46271e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

tests/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def test_index_view_with_endpoints(self):
2727
response = self.client.get(reverse('drfdocs'))
2828

2929
self.assertEqual(response.status_code, 200)
30-
self.assertEqual(len(response.context["endpoints"]), 8)
30+
self.assertEqual(len(response.context["endpoints"]), 9)
3131

3232
# Test the login view
3333
self.assertEqual(response.context["endpoints"][0].name_parent, "accounts")

tests/urls.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,7 @@
2828
# API
2929
url(r'^accounts/', view=include(accounts_urls, namespace='accounts')),
3030
url(r'^organisations/', view=include(organisations_urls, namespace='organisations')),
31+
32+
# Endpoints without parents/namespaces
33+
url(r'^another-login/$', views.LoginView.as_view(), name="login"),
3134
]

0 commit comments

Comments
 (0)