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?
18
18
defined by ` unittest.TestCase ` .
19
19
1 . ` run_test.sh ` : shell script that actually runs the test code, and that
20
20
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.
25
21
26
22
Note
27
23
----
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
# Unittest
2
+
2
3
Testing is an integral part of the software development process. Unit
3
4
testing is a popular technique, and is used in test-driven development
4
5
(TDD). Python's ` unittest ` module in its standard library is quite
5
6
versatile.
6
7
7
8
## What is it?
9
+
8
10
1 . ` Simple ` : a simple example demonstrating useful assertion function in
9
11
unittest`.
10
12
1 . ` Fixtures ` : an example of the use of fixtures for unit testing in the
11
13
context of database testing.
12
14
1 . ` PyTest ` : ` pytest ` is a more modern and convenient testing framework
13
15
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