Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion bx_django_utils_tests/tests/test_user_timezone/test_admin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import logging
from http.cookies import SimpleCookie

from django.conf import settings
Expand Down Expand Up @@ -47,7 +48,10 @@ def test_user_timezone(self):
locale='en_US',
timezone_id='Europe/Berlin',
)
with context.new_page() as page:
with context.new_page() as page, self.assertLogs('django.request', level=logging.DEBUG):
logger = logging.getLogger('django.request')
logger.debug('always_log_something') # favicon.ico is only requested by some browsers

# Use our "Dynamic View Menu" index page from our "test_app":
page.goto(f'{self.live_server_url}')
expect(page).to_have_title('Dynamic View Menu - Index | Django site admin')
Expand Down