We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e004d3a commit 021501eCopy full SHA for 021501e
1 file changed
pydotorg/tests/test_context_processors.py
@@ -116,9 +116,8 @@ def test_user_nav_bar_links_for_anonymous_user(self):
116
self.assertEqual({"USER_NAV_BAR": {}}, context_processors.user_nav_bar_links(request))
117
118
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
- """
+ # Ensure URL_NAME and URL_NAMESPACE are always present in context, even for 404s,
+ # otherwise it makes sentry unhappy: https://python-software-foundation.sentry.io/issues/6931306293/
122
# test with a 404 path
123
request = self.factory.get('/this-does-not-exist/')
124
result = context_processors.url_name(request)
0 commit comments