#32602: Clarify wording re: parallel testing and test case vs. test case class
-------------------------------------+-------------------------------------
     Reporter:  Chris Jerdonek       |                    Owner:  nobody
         Type:                       |                   Status:  new
  Cleanup/optimization               |
    Component:  Testing framework    |                  Version:  3.1
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Chris Jerdonek):

 In your example, `TestStringMethods` is a test case class. `unittest`
 creates test cases from test methods, so test cases are in one-to-one
 correspondence with test methods. (That's why the id of a test case
 includes the method name.)

 For example, if you read the docs for `loadTestsFromModule()`:
 
https://docs.python.org/3/library/unittest.html#unittest.TestLoader.loadTestsFromModule
 it says:

 > Return a suite of all ''test cases'' (my emphasis) contained in the
 given module. This method searches ''module'' for classes derived from
 `TestCase` and creates an instance of the class for each test method
 defined for the class.

 You can view test methods as the way to define the test cases that will
 run.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32602#comment:6>
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/067.dacde30b057c22fec8119a56e01c61e8%40djangoproject.com.

Reply via email to