Skip to content

Commit 0d12835

Browse files
committed
update README
1 parent 8222a78 commit 0d12835

11 files changed

Lines changed: 46 additions & 46 deletions
28.6 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

questionnaire_unit_test.md

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -495,9 +495,9 @@ OK (skipped=6)
495495
pytest -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
501501
cachedir: .pytest_cache
502502
rootdir: ~/unit_tests_practice
503503
configfile: pytest.ini
@@ -613,54 +613,54 @@ Error : Incorrect extension, add a .json questionnaire. Example : questionnaire.
613613
PASSED
614614
questionnaire_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/
620620
PASSED
621621
questionnaire_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
625625
Error : 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/
627627
PASSED
628628
questionnaire_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
632632
Error : 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/
634634
PASSED
635635
questionnaire_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
639639
Error : 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/
641641
PASSED
642642
questionnaire_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/
650650
PASSED
651651
questionnaire_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/
658658
PASSED
659659
questionnaire_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

661661
HTTP Connection to http://127.0.0.1:8000/ in Thread-10 (serve_forever)
662662
questionnaire.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 -
664664
PASSED
665665
questionnaire_unit_test.py::_07_load_json_argv_with_data_via_localhost_8000_in_fixture::test_02_load_json_argv_with_no_argv
666666
questionnaire.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.
676676
PASSED
677677
questionnaire_unit_test.py::_07_load_json_argv_with_data_via_localhost_8000_in_fixture::test_05_load_json_argv_with_non_existent_json_file
678678
questionnaire.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 -
681681
Error : File not found at URL http://127.0.0.1:8000/json_test_files/non-existent-file.json
682682
PASSED
683683
questionnaire_unit_test.py::_07_load_json_argv_with_data_via_localhost_8000_in_fixture::test_06_load_json_argv_with_empty_json_file
684684
questionnaire.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 -
686686
Error : Incompatible or no data in JSON file at URL http://127.0.0.1:8000/json_test_files/json_00_empty.json
687687
PASSEDHTTP Disconnection from http://127.0.0.1:8000/
688688

689689
questionnaire_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 -
694694
PASSED
695695
questionnaire_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
697697
Error : Incorrect extension, add a .json questionnaire. Example : questionnaire.py questionnaire_to_read.json
698698
PASSED
699699
questionnaire_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
701701
Error : Error in argument, should add a single .json questionnaire. Example : questionnaire.py questionnaire_to_read.json
702702
PASSED
703703
questionnaire_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
705705
Error : Incorrect extension, add a .json questionnaire. Example : questionnaire.py questionnaire_to_read.json
706706
PASSED
707707
questionnaire_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
712712
PASSED
713713
questionnaire_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

719719
questionnaire_unit_test.py::_09_load_json_argv_with_simulated_server::test_01_load_json_argv_with_simulated_FileNotFound_answer
720720
questionnaire.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
821821
Warning : 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
822822
PASSED
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

Comments
 (0)