Skip to content

Commit 0fca5c8

Browse files
committed
Move Assert directory into unit-testing
1 parent f64c52e commit 0fca5c8

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

source-code/code-testing/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ What is it?
1818
defined by `unittest.TestCase`.
1919
1. `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

2622
Note
2723
----
File renamed without changes.

source-code/unit-testing/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
# Unittest
2+
23
Testing is an integral part of the software development process. Unit
34
testing is a popular technique, and is used in test-driven development
45
(TDD). Python's `unittest` module in its standard library is quite
56
versatile.
67

78
## What is it?
9+
810
1. `Simple`: a simple example demonstrating useful assertion function in
911
unittest`.
1012
1. `Fixtures`: an example of the use of fixtures for unit testing in the
1113
context of database testing.
1214
1. `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.

0 commit comments

Comments
 (0)