File: tutorial.rst

package info (click to toggle)
python-sure 2.0.1%2Bgit.2023.02.06.3aef950b7c-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 744 kB
  • sloc: python: 3,512; makefile: 255; sh: 12
file content (24 lines) | stat: -rw-r--r-- 654 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.. _Tutorial:

# WORK IN PROGRESS, please don't add this to the table of contents

How to organize your tests
==========================

Here is a proposal on how to organize your tests.
I have been using this manner of project organization

Python Testing: how to organize your project
forget about test cases, welcome scenarios


Pro tips
--------

Adding test coverage to existing code
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

* If your test needs to manually set a side-effect on the target
  object it means that you should write a method for your class that
  will perform the side-effect, then you can simply call a single
  method from your test.