Skip to content

Commit feef24e

Browse files
committed
Format MD file more concisely
1 parent 3602435 commit feef24e

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

‎questionnaire_unit_test.md‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ and the file path `<File_Path>`
1919

2020
- `test_01` -> `<Json_Data>, <File_Path>` if receives __a good json file__ then prints no message
2121

22-
- `test_02` -> `None, None` if receives __no file__ then prints the message :
22+
- `test_02` -> `None, None` if receives __no file__ then prints the message :\
2323
```Error : Error in argument, should add a single .json questionnaire```
2424

25-
- `test_03` -> `None, None` if receives __more than one file__ then prints the message :
25+
- `test_03` -> `None, None` if receives __more than one file__ then prints the message :\
2626
```Error : Error in argument, should add a single .json questionnaire```
2727

28-
- `test_04` -> `None, <File_Path>` if receives __a file without json extension__ then prints the message :
28+
- `test_04` -> `None, <File_Path>` if receives __a file without json extension__ then prints the message :\
2929
```Error : Incorrect extension, add a .json questionnaire```
3030

31-
- `test_05` -> `None, <File_Path>` if receives __a non-existent file__ then prints the message :
31+
- `test_05` -> `None, <File_Path>` if receives __a non-existent file__ then prints the message :\
3232
```Error : Invalid permissions or path to non-existent-file.json```
3333

34-
- `test_06` -> `None, <File_Path>` if receives __an empty json file__ then prints the message :
34+
- `test_06` -> `None, <File_Path>` if receives __an empty json file__ then prints the message :\
3535
```Error : Incompatible or no data in JSON file empty.json```
3636

3737
---
@@ -56,7 +56,7 @@ The class derives from the level 2 and 3 and executes the same tests under `test
5656
from [json_file_tests](./json_file_tests)
5757

5858
The printed message of test 2 is so quite different from the Level 1 as well.
59-
- `test_02` -> `None, <File_Path>` if receives __no file__ then prints the message :
59+
- `test_02` -> `None, <File_Path>` if receives __no file__ then prints the message :\
6060
```Error : Incorrect extension, add a .json questionnaire.```
6161

6262
---
@@ -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

9999
Idem 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

@@ -151,7 +151,7 @@ This may require to rewrite the tests because the reading of the file from URL m
151151
tests trying to read files from a non-existent URL of the Web.
152152

153153
- `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 :
154+
the network request__ then prints the message :\
155155
```commandline
156156
questionnaire.py http://non-existent-url.com/initial_json_test_file.json -> None, File_Path
157157
Error : File not found at URL http://non-existent-url.com/initial_json_test_file.json

0 commit comments

Comments
 (0)