#34658: New assertion `assertNotInHTML`, like `assertContains` has
`assertNotContains`
-------------------------------------+-------------------------------------
     Reporter:  Thibaud Colas        |                    Owner:  nobody
         Type:  New feature          |                   Status:  closed
    Component:  Testing framework    |                  Version:
     Severity:  Normal               |               Resolution:  wontfix
     Keywords:  testcases, unit      |             Triage Stage:
  tests, HTML, assertions, testing   |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

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


Comment:

 I'm skeptic. Personally, I find the use of `*NotIn*` assertions really
 rare and not the best practice. There can many many reasons why something
 is not in something else, and it becomes even more unreliable when we do
 this in HTML. It's much more stable and bulletproof to use `*In*`
 assertions. I don't think it's worth adding.

 Please first start a discussion on the DevelopersMailingList, where you'll
 reach a wider audience and see what other think, and
 [https://docs.djangoproject.com/en/stable/internals/contributing/bugs-and-
 features/#requesting-features follow the guidelines with regards to
 requesting features].

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34658#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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070188c516f9f8-a8cfcd97-ede1-416b-9e91-5abc70366d52-000000%40eu-central-1.amazonses.com.

Reply via email to