Skip to content

This repository explores some possibilities of automated tests (unittest and pytest) to verify the import and conversion of simple JSON quizzes. It was also my first steps in using Markdown documentation

Notifications You must be signed in to change notification settings

DevCTx/unit_tests_practice

Repository files navigation

README.md

Unit Tests Practice

This repository explores some possibilities of automated tests (unittest and pytest) to verify the import and conversion of simple JSON quizzes. It was also my first steps in using Markdown documentation.


questionnaire_import.py

python ./questionnaire_import.py

Loads some quizzes from a sample list in the program and converts them into a specific json format before to save them into the json_questionnaires folder

More info : questionnaire_import.md


questionnaire.py

python ./questionnaire.py <questionnaire.json>

Displays the quiz in argument and counts the number of good answers

More info : questionnaire.md


questionnaire_unit_tests.py

python ./questionnaire_unit_tests.py

Uses the unittest automated framework but not only to test questionnaire.py

More info : questionnaire_unit_test.md

Uses the files:

  • json_00_empty.json
  • json_00_without_extension
  • json_01_good_format.json
  • json_01_another_good_format.json
  • pytest.ini

and files into json_test_files folder


  • jsonschema==4.17.0
  • parameterized==0.8.1
  • requests==2.28.1
  • validators==0.20.0

About

This repository explores some possibilities of automated tests (unittest and pytest) to verify the import and conversion of simple JSON quizzes. It was also my first steps in using Markdown documentation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages