File tree Expand file tree Collapse file tree 5 files changed +6
-4
lines changed
Expand file tree Collapse file tree 5 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,6 @@ What is it?
1818 defined by ` unittest.TestCase ` .
19191 . ` run_test.sh ` : shell script that actually runs the test code, and that
2020 uses discovery to minimize maintenance of test code.
21- 1 . ` Asserts ` : ` assert ` is a Python statement, so it not part of unit
22- testing per se. It is mainly intended for contract-based programming
23- and one can prevent code to be emitted for asserts by using the
24- ` -O ` optimizatino flag when running the code.
2521
2622Note
2723----
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 11# Unittest
2+
23Testing is an integral part of the software development process. Unit
34testing is a popular technique, and is used in test-driven development
45(TDD). Python's ` unittest ` module in its standard library is quite
56versatile.
67
78## What is it?
9+
8101 . ` Simple ` : a simple example demonstrating useful assertion function in
911 unittest`.
10121 . ` Fixtures ` : an example of the use of fixtures for unit testing in the
1113 context of database testing.
12141 . ` PyTest ` : ` pytest ` is a more modern and convenient testing framework
1315 than that provided by Python's standard library.
16+ 1 . ` Asserts ` : ` assert ` is a Python statement, so it not part of unit
17+ testing per se. It is mainly intended for contract-based programming
18+ and one can prevent code to be emitted for asserts by using the
19+ ` -O ` optimizatino flag when running the code.
You can’t perform that action at this time.
0 commit comments