#25062: assertNoWriteQueries Assertion
-------------------------------------+-------------------------------------
     Reporter:  frewsxcv             |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Testing framework    |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:  testing assert       |             Triage Stage:
  assertion                          |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by timgraham):

 I think the distinction here is that read queries are allowed, but not
 writes. I'm curious about the use case. There is #22492 which proposes a
 way to prohibit queries in a given code block. Perhaps that idea could be
 extended to prohibit write queries in a block. That may be less fragile
 than a test assertion.

--
Ticket URL: <https://code.djangoproject.com/ticket/25062#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/066.2c3840737c361861ccc7eb454d931b11%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to