mirror of
https://github.com/evennia/evennia.git
synced 2026-04-02 14:07:16 +02:00
Updated ReST documentation.
This commit is contained in:
parent
36b15b4ad8
commit
a8139feb1a
37 changed files with 963 additions and 910 deletions
|
|
@ -45,12 +45,12 @@ Inside the ``tests.py`` module you create classes inheriting from
|
|||
used to test a single aspect or component in various ways. Each test
|
||||
case contains one ore more *test methods* - these define the actual
|
||||
tests to run. You can name the test methods anything you want as long as
|
||||
the name starts with "``test_``". Your ``TestCase`` class can also have
|
||||
a method !SetUp(). This is run before each test, setting up whatever
|
||||
preparations the test methods need.
|
||||
the name starts with "``test_``\ ". Your ``TestCase`` class can also
|
||||
have a method !SetUp(). This is run before each test, setting up
|
||||
whatever preparations the test methods need.
|
||||
|
||||
To test the results, you use special methods of the ``TestCase`` class.
|
||||
Many of those start with "``assert``", such as ``assertEqual`` or
|
||||
Many of those start with "``assert``\ ", such as ``assertEqual`` or
|
||||
``assertTrue``.
|
||||
|
||||
Example of a ``TestCase`` class (inside a file ``tests.py``):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue