[Django] #18924: test.Client.logout doesn't send user_logged_out signal

22 views
Skip to first unread message

Django

unread,
Sep 7, 2012, 6:08:48 AM9/7/12
to django-...@googlegroups.com
#18924: test.Client.logout doesn't send user_logged_out signal
-----------------------------------+--------------------
Reporter: awsum | Owner: nobody
Type: Bug | Status: new
Component: Testing framework | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------
As docs say user_logged_out signal should be send wherever logout method
called. Instead of reusing contrib.auth.logout Client doing session clean
up by it's own and doesn't send user_logged_out signal.

Fix: https://github.com/django/django/pull/322

--
Ticket URL: <https://code.djangoproject.com/ticket/18924>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Sep 7, 2012, 6:09:22 AM9/7/12
to django-...@googlegroups.com
#18924: test.Client.logout doesn't send user_logged_out signal
-----------------------------------+--------------------------------------
Reporter: awsum | Owner: nobody
Type: Bug | Status: new
Component: Testing framework | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------------------------
Changes (by awsum):

* needs_better_patch: => 0
* has_patch: 0 => 1
* needs_tests: => 0
* needs_docs: => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/18924#comment:1>

Django

unread,
Sep 7, 2012, 7:44:20 AM9/7/12
to django-...@googlegroups.com
#18924: test.Client.logout doesn't send user_logged_out signal
-----------------------------------+------------------------------------
Reporter: awsum | Owner: nobody
Type: Bug | Status: new
Component: Testing framework | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+------------------------------------
Changes (by mjtamlyn):

* cc: marc.tamlyn@… (added)
* needs_docs: 0 => 1
* stage: Unreviewed => Accepted


Comment:

There's one unused import in the current patch which I've highlighted on
github.

This should be mentioned in release notes as someone may have signals
which now get fired by their tests and are unexpected. There's probably no
need to mention it in the normal docs though.

--
Ticket URL: <https://code.djangoproject.com/ticket/18924#comment:2>

Django

unread,
Sep 7, 2012, 9:42:36 AM9/7/12
to django-...@googlegroups.com
#18924: test.Client.logout doesn't send user_logged_out signal
-------------------------------------+-------------------------------------
Reporter: awsum | Owner: nobody
Type: Bug | Status: new
Component: Testing framework | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
Has patch: 1 | checkin
Needs tests: 0 | Needs documentation: 1
Easy pickings: 0 | Patch needs improvement: 0
| UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by mjtamlyn):

* stage: Accepted => Ready for checkin


Comment:

Subject to release notes, this is now RFC.

--
Ticket URL: <https://code.djangoproject.com/ticket/18924#comment:3>

Django

unread,
Jan 30, 2013, 5:54:00 AM1/30/13
to django-...@googlegroups.com
#18924: test.Client.logout doesn't send user_logged_out signal
-------------------------------------+-------------------------------------

Reporter: awsum | Owner: nobody
Type: Bug | Status: new
Component: Testing framework | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
Has patch: 1 | checkin
Needs tests: 0 | Needs documentation: 1
Easy pickings: 0 | Patch needs improvement: 0
| UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by anonymous):

Can we have this anytime soon?

--
Ticket URL: <https://code.djangoproject.com/ticket/18924#comment:4>

Django

unread,
Jan 30, 2013, 6:43:50 AM1/30/13
to django-...@googlegroups.com
#18924: test.Client.logout doesn't send user_logged_out signal
-----------------------------------+------------------------------------

Reporter: awsum | Owner: nobody
Type: Bug | Status: new
Component: Testing framework | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-----------------------------------+------------------------------------
Changes (by mjtamlyn):

* needs_better_patch: 0 => 1
* stage: Ready for checkin => Accepted


Comment:

Patch has now gone stale - it will need updating for custom user models.

--
Ticket URL: <https://code.djangoproject.com/ticket/18924#comment:5>

Django

unread,
Feb 16, 2013, 5:41:21 PM2/16/13
to django-...@googlegroups.com
#18924: test.Client.logout doesn't send user_logged_out signal
-----------------------------------+------------------------------------
Reporter: awsum | Owner: fhahn
Type: Bug | Status: assigned

Component: Testing framework | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-----------------------------------+------------------------------------
Changes (by fhahn):

* status: new => assigned
* needs_better_patch: 1 => 0
* owner: nobody => fhahn
* cc: flo@… (added)


Comment:

I've updated the patch (after contacting the creator of the patch) and
created a new pull request: https://github.com/django/django/pull/731

--
Ticket URL: <https://code.djangoproject.com/ticket/18924#comment:6>

Django

unread,
Jun 4, 2013, 12:40:18 PM6/4/13
to django-...@googlegroups.com
#18924: test.Client.logout doesn't send user_logged_out signal
-----------------------------------+------------------------------------
Reporter: awsum | Owner: fhahn
Type: Bug | Status: closed

Component: Testing framework | Version: master
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-----------------------------------+------------------------------------
Changes (by Tim Graham <timograham@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"a35ed202419a054a9125ee6205a1a7b4eb3cb46d"]:
{{{
#!CommitTicketReference repository=""
revision="a35ed202419a054a9125ee6205a1a7b4eb3cb46d"
Fixed #18924 -- Made test.Client.logout send user_logged_out signal.

Thanks awsum for the suggestion and Pavel Ponomarev and
Florian Hahn for the patch.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/18924#comment:7>

Reply all
Reply to author
Forward
0 new messages