@@ -67,15 +67,15 @@ A free json file is available at the url : https://countwordsfree.com/example.js
6767- ` test_01 ` -> ` <Json_Data>, <File_Path> ` if receives __ a valid json file on a valid url path__ then prints no message.
6868
6969
70- - ` test_02 ` -> ` None, <File_Path> ` if receives __ a invalid json file on a valid url path__ then prints the message :\\
70+ - ` test_02 ` -> ` None, <File_Path> ` if receives __ a invalid json file on a valid url path__ then prints the message :\
7171``` Error : File not found at URL https://countwordsfree.com/non-existant.json ```
7272
7373
74- - ` test_03 ` -> ` None, <File_Path> ` if receives __ a valid json file but on a invalid url path__ then prints the message :\\
74+ - ` test_03 ` -> ` None, <File_Path> ` if receives __ a valid json file but on a invalid url path__ then prints the message :\
7575``` Error : Invalid URL at https://countwordsfre.com/example.json ```
7676
7777
78- - ` test_04 ` -> ` None, <File_Path> ` if receives __ a file without json extension on a valid url path__ then prints the message :\\
78+ - ` test_04 ` -> ` None, <File_Path> ` if receives __ a file without json extension on a valid url path__ then prints the message :\
7979``` Error : Incorrect extension, add a .json questionnaire. ```
8080
8181---
@@ -98,11 +98,11 @@ The printed message of test 2 is quite different from the Level 1 since the URL
9898
9999Idem for test 5 and 6 because the argument given here is a URL and not a file.
100100
101- - ` test_05 ` -> ` None, File_Path ` if receives __ a non-existent file__ then prints the message :\\
101+ - ` test_05 ` -> ` None, File_Path ` if receives __ a non-existent file__ then prints the message :\
102102``` Error : File not found at URL <URL> ```
103103
104104
105- - ` test_06 ` -> ` None, File_Path ` if receives __ an empty json file__ then prints the message :\\
105+ - ` test_06 ` -> ` None, File_Path ` if receives __ an empty json file__ then prints the message :\
106106``` Error : Incompatible or no data in JSON file at URL <URL> ```
107107
108108
@@ -124,8 +124,7 @@ 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 definition of the fixture used in this test, this class will be executed only using ` pytest ` and
128- 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 under ` unittests `
129128``` commandline
130129pytest -v -k questionnaire_unit_test.py -s
131130```
@@ -151,7 +150,7 @@ This may require to rewrite the tests because the reading of the file from URL m
151150tests trying to read files from a non-existent URL of the Web.
152151
153152- ` test_01 ` -> ` None, File_Path ` if receives __ a json file on a non-existent URL with a simulated `` File Not Found (404) `` answer to
154- the network request__ then prints the message :\
153+ the network request__ then prints the message :
155154``` commandline
156155questionnaire.py http://non-existent-url.com/initial_json_test_file.json -> None, File_Path
157156Error : File not found at URL http://non-existent-url.com/initial_json_test_file.json
0 commit comments