Skip to content

Commit 021501e

Browse files
JacobCoffeemerwok
andauthored
Update pydotorg/tests/test_context_processors.py
Co-authored-by: Éric <merwok@netwok.org>
1 parent e004d3a commit 021501e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

pydotorg/tests/test_context_processors.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,8 @@ def test_user_nav_bar_links_for_anonymous_user(self):
116116
self.assertEqual({"USER_NAV_BAR": {}}, context_processors.user_nav_bar_links(request))
117117

118118
def test_url_name_always_returns_keys(self):
119-
"""Ensure URL_NAME and URL_NAMESPACE are always present in context, even for 404s.
120-
Because it makes sentry unhappy: https://python-software-foundation.sentry.io/issues/6931306293/
121-
"""
119+
# Ensure URL_NAME and URL_NAMESPACE are always present in context, even for 404s,
120+
# otherwise it makes sentry unhappy: https://python-software-foundation.sentry.io/issues/6931306293/
122121
# test with a 404 path
123122
request = self.factory.get('/this-does-not-exist/')
124123
result = context_processors.url_name(request)

0 commit comments

Comments
 (0)