You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7878524
Browse filesBrowse the repository at this point in the historyBrowse files
Rewriting of questionnaire init
Add of tests about json into questionnaire_unit_test.py and json test files into ./json_test_files
questionnaire_unit_test.md completed with the json tests
Copy file name to clipboardExpand all lines: README.md
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,15 @@
2
2
3
3
# Unit Tests Practice
4
4
5
-
#### This repository has been prepared to practice the `unittest` automated testing framework through different angles
5
+
#### This repository has been prepared to practice the `unittest` automated testing framework
6
6
#### It is based on the use of simple quizzes importer and viewer.
7
7
8
8
---
9
9
10
10
## questionnaire_import.py
11
11
>python ./questionnaire_import.py
12
12
13
-
Loads some quizzes from a sample list in the program and converts them into a specific json [format](./questionnaire.md#expected-json-schema) before to save them
13
+
Loads some quizzes from a sample list in the program and converts them into a specific [json format](./questionnaire.md#expected-json-schema) before to save them
14
14
into the [json_questionnaires](./json_questionnaires) folder
15
15
16
16
More info : [questionnaire_import.md](./questionnaire_import.md)
@@ -20,7 +20,7 @@ More info : [questionnaire_import.md](./questionnaire_import.md)
20
20
## questionnaire.py
21
21
>python ./questionnaire.py <questionnaire.json>
22
22
23
-
Displays the quizz in argument and counts the number of good answers
23
+
Displays the quiz in argument and counts the number of good answers
24
24
25
25
More info : [questionnaire.md](./questionnaire.md)
26
26
@@ -33,11 +33,12 @@ Uses the `unittest` automated framework but not only to test questionnaire.py
33
33
34
34
More info : [questionnaire_unit_test.md](./questionnaire_unit_test.md)
35
35
36
-
Uses :
37
-
- initial_json_test_file.json
38
-
- second_json_test_file.json
39
-
- json_file_without_extension
40
-
- empty.json
36
+
Uses the files:
37
+
- json_00_empty.json
38
+
- json_00_without_extension
39
+
- json_01_good_format.json
40
+
- json_01_another_good_format.json
41
+
- pytest.ini
41
42
42
43
and files into [json_test_files](./json_test_files) folder
0 commit comments