Skip to content

Commit 06615d4

Browse files
committed
ddd
1 parent 64de300 commit 06615d4

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

tests/test_login_not_required.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,5 @@ class LoginNotRequiredTestCase(SimpleTestCase):
2020
DEBUG_TOOLBAR_CONFIG={"RENDER_PANELS": True},
2121
)
2222
def test_login_not_required(self):
23-
self.assertEqual(self.client.get(reverse("djdt:render_panel")).status_code, 200)
24-
25-
26-
# DEBUG_TOOLBAR_CONFIG = {
27-
# # Django's test client sets wsgi.multiprocess to True inappropriately
28-
# "RENDER_PANELS": False,
29-
# # IS_RUNNING_TESTS must be False even though we're running tests because we're running the toolbar's own tests.
30-
# "IS_RUNNING_TESTS": False,
31-
# }
23+
response = self.client.get(reverse("djdt:history_sidebar"))
24+
self.assertEqual(response.status_code, 200)

tests/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@
2626
path("ajax/", views.ajax_view),
2727
path("login_without_redirect/", LoginView.as_view(redirect_field_name=None)),
2828
path("admin/", admin.site.urls),
29-
path("__debug__/", include("debug_toolbar.urls", namespace="djdt")),
29+
path("__debug__/", include("debug_toolbar.urls")),
3030
]

0 commit comments

Comments
 (0)