@@ -495,9 +495,9 @@ OK (skipped=6)
495495pytest -v -k questionnaire_unit_test.py -s
496496```
497497
498- ``` python
498+ ``` console
499499============================================================================================================ test session starts =============================================================================================================
500- platform linux -- Python 3.12 .3, pytest- 9.1 .1 , pluggy- 1.6 .0 -- ~ / unit_tests_practice/ venv/ bin / python3
500+ platform linux -- Python 3.12.3, pytest-8.0.0 , pluggy-1.6.0 -- ~/unit_tests_practice/venv/bin/python3
501501cachedir: .pytest_cache
502502rootdir: ~/unit_tests_practice
503503configfile: pytest.ini
@@ -613,54 +613,54 @@ Error : Incorrect extension, add a .json questionnaire. Example : questionnaire.
613613PASSED
614614questionnaire_unit_test.py::_06_load_json_argv_with_data_via_localhost_8000_in_setup_teardown::test_01_load_json_argv_with_one_good_json_file
615615
616- Connection to http:// 127.0 .0.1:60393 / in Thread- 1 (serve_forever)
617- questionnaire.py http:// 127.0 .0.1:60393 / json_test_files/ json_01_good_format.json -> Json_Data, File_Path
618- 127.0 .0.1 - - [30 / Jun/ 2026 15 :14 : 15 ] " GET /json_test_files/json_01_good_format.json HTTP/1.1" 200 -
619- Disconnection from http:// 127.0 .0.1:60393 /
616+ Connection to http://127.0.0.1:59521 / in Thread-1 (serve_forever)
617+ questionnaire.py http://127.0.0.1:59521 /json_test_files/json_01_good_format.json -> Json_Data, File_Path
618+ 127.0.0.1 - - [30/Jun/2026 15:32:21 ] "GET /json_test_files/json_01_good_format.json HTTP/1.1" 200 -
619+ Disconnection from http://127.0.0.1:59521 /
620620PASSED
621621questionnaire_unit_test.py::_06_load_json_argv_with_data_via_localhost_8000_in_setup_teardown::test_02_load_json_argv_with_no_argv
622622
623- Connection to http:// 127.0 .0.1:55809 / in Thread- 3 (serve_forever)
624- questionnaire.py http:// 127.0 .0.1:55809 / json_test_files/ -> None , File_Path
623+ Connection to http://127.0.0.1:37907 / in Thread-3 (serve_forever)
624+ questionnaire.py http://127.0.0.1:37907 /json_test_files/ -> None, File_Path
625625Error : Incorrect extension, add a .json questionnaire. Example : questionnaire.py questionnaire_to_read.json
626- Disconnection from http:// 127.0 .0.1:55809 /
626+ Disconnection from http://127.0.0.1:37907 /
627627PASSED
628628questionnaire_unit_test.py::_06_load_json_argv_with_data_via_localhost_8000_in_setup_teardown::test_03_load_json_argv_with_more_than_one_argv
629629
630- Connection to http:// 127.0 .0.1:40861 / in Thread- 4 (serve_forever)
631- questionnaire.py http:// 127.0 .0.1:40861 / json_test_files/ json_01_good_format.json http:// 127.0 .0.1:40861 / json_test_files/ json_01_another_good_format.json -> None , None
630+ Connection to http://127.0.0.1:38407 / in Thread-4 (serve_forever)
631+ questionnaire.py http://127.0.0.1:38407 /json_test_files/json_01_good_format.json http://127.0.0.1:38407 /json_test_files/json_01_another_good_format.json -> None, None
632632Error : Error in argument, should add a single .json questionnaire. Example : questionnaire.py questionnaire_to_read.json
633- Disconnection from http:// 127.0 .0.1:40861 /
633+ Disconnection from http://127.0.0.1:38407 /
634634PASSED
635635questionnaire_unit_test.py::_06_load_json_argv_with_data_via_localhost_8000_in_setup_teardown::test_04_load_json_argv_with_argv_without_json_extension
636636
637- Connection to http:// 127.0 .0.1:40203 / in Thread- 5 (serve_forever)
638- questionnaire.py http:// 127.0 .0.1:40203 / json_test_files/ json_00_without_extension -> None , File_Path
637+ Connection to http://127.0.0.1:53347 / in Thread-5 (serve_forever)
638+ questionnaire.py http://127.0.0.1:53347 /json_test_files/json_00_without_extension -> None, File_Path
639639Error : Incorrect extension, add a .json questionnaire. Example : questionnaire.py questionnaire_to_read.json
640- Disconnection from http:// 127.0 .0.1:40203 /
640+ Disconnection from http://127.0.0.1:53347 /
641641PASSED
642642questionnaire_unit_test.py::_06_load_json_argv_with_data_via_localhost_8000_in_setup_teardown::test_05_load_json_argv_with_non_existent_json_file
643643
644- Connection to http:// 127.0 .0.1:58481 / in Thread- 6 (serve_forever)
645- questionnaire.py http:// 127.0 .0.1:58481 / json_test_files/ non- existent- file .json -> None , File_Path
646- 127.0 .0.1 - - [30 / Jun/ 2026 15 :14 : 17 ] code 404 , message File not found
647- 127.0 .0.1 - - [30 / Jun/ 2026 15 :14 : 17 ] " GET /json_test_files/non-existent-file.json HTTP/1.1" 404 -
648- Error : File not found at URL http:// 127.0 .0.1:58481 / json_test_files/ non- existent- file .json
649- Disconnection from http:// 127.0 .0.1:58481 /
644+ Connection to http://127.0.0.1:35085 / in Thread-6 (serve_forever)
645+ questionnaire.py http://127.0.0.1:35085 /json_test_files/non-existent-file.json -> None, File_Path
646+ 127.0.0.1 - - [30/Jun/2026 15:32:23 ] code 404, message File not found
647+ 127.0.0.1 - - [30/Jun/2026 15:32:23 ] "GET /json_test_files/non-existent-file.json HTTP/1.1" 404 -
648+ Error : File not found at URL http://127.0.0.1:35085 /json_test_files/non-existent-file.json
649+ Disconnection from http://127.0.0.1:35085 /
650650PASSED
651651questionnaire_unit_test.py::_06_load_json_argv_with_data_via_localhost_8000_in_setup_teardown::test_06_load_json_argv_with_empty_json_file
652652
653- Connection to http:// 127.0 .0.1:49833 / in Thread- 8 (serve_forever)
654- questionnaire.py http:// 127.0 .0.1:49833 / json_test_files/ json_00_empty.json -> None , File_Path
655- 127.0 .0.1 - - [30 / Jun/ 2026 15 :14 : 17 ] " GET /json_test_files/json_00_empty.json HTTP/1.1" 200 -
656- Error : Incompatible or no data in JSON file at URL http:// 127.0 .0.1:49833 / json_test_files/ json_00_empty.json
657- Disconnection from http:// 127.0 .0.1:49833 /
653+ Connection to http://127.0.0.1:44455 / in Thread-8 (serve_forever)
654+ questionnaire.py http://127.0.0.1:44455 /json_test_files/json_00_empty.json -> None, File_Path
655+ 127.0.0.1 - - [30/Jun/2026 15:32:24 ] "GET /json_test_files/json_00_empty.json HTTP/1.1" 200 -
656+ Error : Incompatible or no data in JSON file at URL http://127.0.0.1:44455 /json_test_files/json_00_empty.json
657+ Disconnection from http://127.0.0.1:44455 /
658658PASSED
659659questionnaire_unit_test.py::_07_load_json_argv_with_data_via_localhost_8000_in_fixture::test_01_load_json_argv_with_one_good_json_file
660660
661661HTTP Connection to http://127.0.0.1:8000/ in Thread-10 (serve_forever)
662662questionnaire.py http://127.0.0.1:8000/json_test_files/json_01_good_format.json -> Json_Data, File_Path
663- 127.0 .0.1 - - [30 / Jun/ 2026 15 :14 : 18 ] " GET /json_test_files/json_01_good_format.json HTTP/1.1" 200 -
663+ 127.0.0.1 - - [30/Jun/2026 15:32:24 ] "GET /json_test_files/json_01_good_format.json HTTP/1.1" 200 -
664664PASSED
665665questionnaire_unit_test.py::_07_load_json_argv_with_data_via_localhost_8000_in_fixture::test_02_load_json_argv_with_no_argv
666666questionnaire.py http://127.0.0.1:8000/json_test_files/ -> None, File_Path
@@ -676,45 +676,45 @@ Error : Incorrect extension, add a .json questionnaire. Example : questionnaire.
676676PASSED
677677questionnaire_unit_test.py::_07_load_json_argv_with_data_via_localhost_8000_in_fixture::test_05_load_json_argv_with_non_existent_json_file
678678questionnaire.py http://127.0.0.1:8000/json_test_files/non-existent-file.json -> None, File_Path
679- 127.0 .0.1 - - [30 / Jun/ 2026 15 :14 : 18 ] code 404 , message File not found
680- 127.0 .0.1 - - [30 / Jun/ 2026 15 :14 : 18 ] " GET /json_test_files/non-existent-file.json HTTP/1.1" 404 -
679+ 127.0.0.1 - - [30/Jun/2026 15:32:24 ] code 404, message File not found
680+ 127.0.0.1 - - [30/Jun/2026 15:32:24 ] "GET /json_test_files/non-existent-file.json HTTP/1.1" 404 -
681681Error : File not found at URL http://127.0.0.1:8000/json_test_files/non-existent-file.json
682682PASSED
683683questionnaire_unit_test.py::_07_load_json_argv_with_data_via_localhost_8000_in_fixture::test_06_load_json_argv_with_empty_json_file
684684questionnaire.py http://127.0.0.1:8000/json_test_files/json_00_empty.json -> None, File_Path
685- 127.0 .0.1 - - [30 / Jun/ 2026 15 :14 : 18 ] " GET /json_test_files/json_00_empty.json HTTP/1.1" 200 -
685+ 127.0.0.1 - - [30/Jun/2026 15:32:24 ] "GET /json_test_files/json_00_empty.json HTTP/1.1" 200 -
686686Error : Incompatible or no data in JSON file at URL http://127.0.0.1:8000/json_test_files/json_00_empty.json
687687PASSEDHTTP Disconnection from http://127.0.0.1:8000/
688688
689689questionnaire_unit_test.py::_08_load_json_argv_with_data_via_localhost_8000_in_setupClass_teardownClass::test_01_load_json_argv_with_one_good_json_file
690690
691- Connection to http:// 127.0 .0.1:47413 / in Thread- 14 (serve_forever)
692- questionnaire.py http:// 127.0 .0.1:47413 / json_test_files/ json_01_good_format.json -> Json_Data, File_Path
693- 127.0 .0.1 - - [30 / Jun/ 2026 15 :14 : 18 ] " GET /json_test_files/json_01_good_format.json HTTP/1.1" 200 -
691+ Connection to http://127.0.0.1:43809 / in Thread-14 (serve_forever)
692+ questionnaire.py http://127.0.0.1:43809 /json_test_files/json_01_good_format.json -> Json_Data, File_Path
693+ 127.0.0.1 - - [30/Jun/2026 15:32:24 ] "GET /json_test_files/json_01_good_format.json HTTP/1.1" 200 -
694694PASSED
695695questionnaire_unit_test.py::_08_load_json_argv_with_data_via_localhost_8000_in_setupClass_teardownClass::test_02_load_json_argv_with_no_argv
696- questionnaire.py http:// 127.0 .0.1:47413 / json_test_files/ -> None , File_Path
696+ questionnaire.py http://127.0.0.1:43809 /json_test_files/ -> None, File_Path
697697Error : Incorrect extension, add a .json questionnaire. Example : questionnaire.py questionnaire_to_read.json
698698PASSED
699699questionnaire_unit_test.py::_08_load_json_argv_with_data_via_localhost_8000_in_setupClass_teardownClass::test_03_load_json_argv_with_more_than_one_argv
700- questionnaire.py http:// 127.0 .0.1:47413 / json_test_files/ json_01_good_format.json http:// 127.0 .0.1:47413 / json_test_files/ json_01_another_good_format.json -> None , None
700+ questionnaire.py http://127.0.0.1:43809 /json_test_files/json_01_good_format.json http://127.0.0.1:43809 /json_test_files/json_01_another_good_format.json -> None, None
701701Error : Error in argument, should add a single .json questionnaire. Example : questionnaire.py questionnaire_to_read.json
702702PASSED
703703questionnaire_unit_test.py::_08_load_json_argv_with_data_via_localhost_8000_in_setupClass_teardownClass::test_04_load_json_argv_with_argv_without_json_extension
704- questionnaire.py http:// 127.0 .0.1:47413 / json_test_files/ json_00_without_extension -> None , File_Path
704+ questionnaire.py http://127.0.0.1:43809 /json_test_files/json_00_without_extension -> None, File_Path
705705Error : Incorrect extension, add a .json questionnaire. Example : questionnaire.py questionnaire_to_read.json
706706PASSED
707707questionnaire_unit_test.py::_08_load_json_argv_with_data_via_localhost_8000_in_setupClass_teardownClass::test_05_load_json_argv_with_non_existent_json_file
708- questionnaire.py http:// 127.0 .0.1:47413 / json_test_files/ non- existent- file .json -> None , File_Path
709- 127.0 .0.1 - - [30 / Jun/ 2026 15 :14 : 18 ] code 404 , message File not found
710- 127.0 .0.1 - - [30 / Jun/ 2026 15 :14 : 18 ] " GET /json_test_files/non-existent-file.json HTTP/1.1" 404 -
711- Error : File not found at URL http:// 127.0 .0.1:47413 / json_test_files/ non- existent- file .json
708+ questionnaire.py http://127.0.0.1:43809 /json_test_files/non-existent-file.json -> None, File_Path
709+ 127.0.0.1 - - [30/Jun/2026 15:32:24 ] code 404, message File not found
710+ 127.0.0.1 - - [30/Jun/2026 15:32:24 ] "GET /json_test_files/non-existent-file.json HTTP/1.1" 404 -
711+ Error : File not found at URL http://127.0.0.1:43809 /json_test_files/non-existent-file.json
712712PASSED
713713questionnaire_unit_test.py::_08_load_json_argv_with_data_via_localhost_8000_in_setupClass_teardownClass::test_06_load_json_argv_with_empty_json_file
714- questionnaire.py http:// 127.0 .0.1:47413 / json_test_files/ json_00_empty.json -> None , File_Path
715- 127.0 .0.1 - - [30 / Jun/ 2026 15 :14 : 18 ] " GET /json_test_files/json_00_empty.json HTTP/1.1" 200 -
716- Error : Incompatible or no data in JSON file at URL http:// 127.0 .0.1:47413 / json_test_files/ json_00_empty.json
717- PASSEDDisconnection from http:// 127.0 .0.1:47413 /
714+ questionnaire.py http://127.0.0.1:43809 /json_test_files/json_00_empty.json -> None, File_Path
715+ 127.0.0.1 - - [30/Jun/2026 15:32:24 ] "GET /json_test_files/json_00_empty.json HTTP/1.1" 200 -
716+ Error : Incompatible or no data in JSON file at URL http://127.0.0.1:43809 /json_test_files/json_00_empty.json
717+ PASSEDDisconnection from http://127.0.0.1:43809 /
718718
719719questionnaire_unit_test.py::_09_load_json_argv_with_simulated_server::test_01_load_json_argv_with_simulated_FileNotFound_answer
720720questionnaire.py http://non-existent-url.com/json_01_good_format.json -> None, File_Path
@@ -821,7 +821,7 @@ Warning : Skipped question : no one or more than one good answers in question 1
821821Warning : Skipped question : no one or more than one good answers in question 2 file json_test_files/json_24_with_questions_without_good_answer_only.json
822822PASSED
823823
824- ==================================================================================================== = 73 passed, 53 deselected in 6. 33s ======================================================================================================
824+ ===================================================================================================== 73 passed, 53 deselected in 5.70s ======================================================================================================
825825```
826826
827827[ README.md] ( ./README.md ) > [ questionnaire_unit_test.md] ( ./questionnaire_unit_test.md )
0 commit comments