Skip to content

Commit

Permalink
Fixing test_clearsessions_unsupported test (#863)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankiaga authored Mar 20, 2024
1 parent c97b542 commit f5928da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/sessions_tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -915,9 +915,9 @@ def test_session_save_does_not_resurrect_session_logged_out_in_other_context(sel
class ClearSessionsCommandTests(SimpleTestCase):
def test_clearsessions_unsupported(self):
msg = (
"Session engine 'tests.sessions_tests.no_clear_expired' doesn't "
"Session engine 'sessions_tests.no_clear_expired' doesn't "
"support clearing expired sessions."
)
with self.settings(SESSION_ENGINE='tests.sessions_tests.no_clear_expired'):
with self.settings(SESSION_ENGINE='sessions_tests.no_clear_expired'):
with self.assertRaisesMessage(management.CommandError, msg):
management.call_command('clearsessions')

0 comments on commit f5928da

Please sign in to comment.