Skip to content

Commit 952d499

Browse files
committed
Format MD file more concisely
1 parent f0774d5 commit 952d499

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎questionnaire_unit_test.md‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ HTTP Connection to http://127.0.0.1:8000/ in Thread-4 (serve_forever)
124124
...
125125
HTTP Disconnection from http://127.0.0.1:8000/
126126
```
127-
Note : According to the fixture used in this test, this class will be executed only using `pytest` and will be skipped under `unittests`
127+
Note : According to the fixture used in this test, this class will be executed only using `pytest` and will be skipped
128+
using `unittests`
128129
```commandline
129130
pytest -v -k questionnaire_unit_test.py -s
130131
```
@@ -133,9 +134,9 @@ pytest -v -k questionnaire_unit_test.py -s
133134
### Level 8 : Optimized Level 6 with unittests built-in `@classmethod` tag
134135

135136
In the same idea as Level 7 with fixtures, it is possible to call the built-in methods `setUpClass` and `tearDownClass`
136-
at the beginning and at the end of the tests of the class.\
137-
To do this, the `self` argument must be modified to `cls` because these built-in functions are private to the unittest
138-
class. It is also why it is also necessary to use the built-in `@classmethod` tag in order to access them.
137+
at the beginning and at the end of the tests of the class. To do this, the `self` argument must be modified to `cls`
138+
because these built-in functions are private to the unittest class, and the built-in `@classmethod` tag must be added
139+
over the class in order to access them.
139140

140141
---
141142
### Level 9 : Tests with a patch on network requests

0 commit comments

Comments
 (0)