| 1 |
.. _Tutorial: |
| 2 |
|
| 3 |
# WORK IN PROGRESS, please don't add this to the table of contents |
| 4 |
|
| 5 |
How to organize your tests |
| 6 |
========================== |
| 7 |
|
| 8 |
Here is a proposal on how to organize your tests. |
| 9 |
I have been using this manner of project organization |
| 10 |
|
| 11 |
Python Testing: how to organize your project |
| 12 |
forget about test cases, welcome scenarios |
| 13 |
|
| 14 |
|
| 15 |
Pro tips |
| 16 |
-------- |
| 17 |
|
| 18 |
Adding test coverage to existing code |
| 19 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 20 |
|
| 21 |
* If your test needs to manually set a side-effect on the target |
| 22 |
object it means that you should write a method for your class that |
| 23 |
will perform the side-effect, then you can simply call a single |
| 24 |
method from your test. |