#27117: The force_login() does not work in a testing if using more one a test
-----------------------------------+--------------------------------------
     Reporter:  setivolkylany      |                    Owner:  nobody
         Type:  Bug                |                   Status:  closed
    Component:  Testing framework  |                  Version:  1.9
     Severity:  Normal             |               Resolution:  invalid
     Keywords:  Pytest, LiveTests  |             Triage Stage:  Unreviewed
    Has patch:  0                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+--------------------------------------
Changes (by timgraham):

 * status:  new => closed
 * resolution:   => invalid
 * type:  Uncategorized => Bug


Comment:

 This looks like a bug in your test code -- you're creating a user in
 `setUpClass` so that object persists between test methods. It may not be
 related to the issue, but the test client isn't designed for use in
 `StaticLiveServerTestCase`. See TicketClosingReasons/UseSupportChannels
 for ways to get help.

--
Ticket URL: <https://code.djangoproject.com/ticket/27117#comment:2>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/071.2dcb1d45844c3cf2675c7a0e9947a859%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to