#35585: `Query.has_results` calls `.exists()` with wrong argument
-------------------------------------+-------------------------------------
     Reporter:  Flavio Curella       |                    Owner:  Flavio
                                     |  Curella
         Type:  Bug                  |                   Status:  assigned
    Component:  Database layer       |                  Version:  dev
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  1                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Mariusz Felisiak):

 Replying to [comment:9 Natalia Bidart]:
 > PR looks good but it needs a regression test.

 IMO, it's not worth adding a regression test when the only doable option
 is to mock `exists()` call in `has_results()` and assert passed arguments.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35585#comment:10>
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 on the web visit 
https://groups.google.com/d/msgid/django-updates/0107019093b52564-5b0b22bc-61a5-4e27-b061-26069d2c73f2-000000%40eu-central-1.amazonses.com.

Reply via email to