File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -124,7 +124,8 @@ HTTP Connection to http://127.0.0.1:8000/ in Thread-4 (serve_forever)
124124...
125125HTTP 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
129130pytest -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
135136In 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
You can’t perform that action at this time.
0 commit comments