#36540: `alogout` is not cleaning user cache correctly
------------------------------+--------------------------------------
     Reporter:  Xdynix        |                    Owner:  (none)
         Type:  Bug           |                   Status:  closed
    Component:  contrib.auth  |                  Version:  5.2
     Severity:  Normal        |               Resolution:  worksforme
     Keywords:                |             Triage Stage:  Unreviewed
    Has patch:  0             |      Needs documentation:  0
  Needs tests:  0             |  Patch needs improvement:  0
Easy pickings:  1             |                    UI/UX:  0
------------------------------+--------------------------------------
Changes (by Sarah Boyce):

 * resolution:   => worksforme
 * status:  new => closed

Comment:

 I can't replicate. The behavior also matches the sync behavior
 {{{#!diff
 --- a/tests/async/test_async_auth.py
 +++ b/tests/async/test_async_auth.py
 @@ -127,7 +127,10 @@ class AsyncAuthTest(TestCase):
          await self.client.alogin(username="testuser", password="testpw")
          request = HttpRequest()
          request.session = await self.client.asession()
 +        request.user = self.test_user
          await alogout(request)
 +        self.assertNotEqual(request.user, self.test_user)
 +        self.assertIsInstance(request.user, AnonymousUser)
          user = await aget_user(request)
          self.assertIsInstance(user, AnonymousUser)
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36540#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/010701987a010665-48f22176-849a-49a0-9737-f438bc10572d-000000%40eu-central-1.amazonses.com.

Reply via email to