MCPcopy Create free account

hub / github.com/KonyshevArtem/yandex-academy-task / functions

Functions200 in github.com/KonyshevArtem/yandex-academy-task

Methodtest_delete_percentile_age_should_do_nothing_when_no_town_and_no_birth_date_in_patch
(self)
tests/handlers_tests/patch_citizen_handler_tests.py:107
Methodtest_get_birthdays_should_return_empty_dict_when_citizens_empty
(self)
tests/handlers_tests/get_birthdays_handler_tests.py:8
Methodtest_get_birthdays_should_return_empty_when_no_relatives
(self)
tests/handlers_tests/get_birthdays_handler_tests.py:12
Methodtest_get_birthdays_when_multiple_relatives
(self)
tests/handlers_tests/get_birthdays_handler_tests.py:23
Methodtest_get_birthdays_when_one_relative
(self)
tests/handlers_tests/get_birthdays_handler_tests.py:17
Methodtest_get_cached_data_should_read_from_db
(self)
tests/decorators_tests/response_cacher_tests.py:29
Methodtest_get_cached_data_should_return_None_when_no_cache
(self)
tests/decorators_tests/response_cacher_tests.py:34
Methodtest_get_citizen_data_should_extract_citizen_data_from_db_request
(self)
tests/handlers_tests/patch_citizen_handler_tests.py:65
Methodtest_get_citizen_data_should_stringify_birth_date
(self)
tests/handlers_tests/patch_citizen_handler_tests.py:71
Methodtest_get_citizens_should_raise_if_not_found
(self)
tests/handlers_tests/shared_tests.py:16
Methodtest_get_citizens_should_return_data_if_found
(self)
tests/handlers_tests/shared_tests.py:10
Methodtest_get_citizens_should_select_with_projection
(self)
tests/handlers_tests/shared_tests.py:21
Methodtest_get_relatives_difference
(self, old_relatives: set, patch_data: dict, expected_to_push: set, expe
tests/handlers_tests/update_relatives_tests.py:53
Methodtest_get_relatives_should_make_set_of_relatives
(self)
tests/handlers_tests/update_relatives_tests.py:28
Methodtest_get_relatives_should_raise_exception_when_citizen_not_found
(self)
tests/handlers_tests/update_relatives_tests.py:39
Methodtest_get_relatives_should_raise_exception_when_import_not_found
(self)
tests/handlers_tests/update_relatives_tests.py:34
Methodtest_get_relatives_should_return_set_of_relatives
(self)
tests/handlers_tests/update_relatives_tests.py:22
Methodtest_get_representation_should_be_empty_when_percentile_empty
(self)
tests/handlers_tests/get_percentile_age_handler_tests.py:64
Methodtest_get_representation_should_return_empty_when_empty_birthdays
(self)
tests/handlers_tests/get_birthdays_handler_tests.py:30
Methodtest_get_representation_when_birthdays_not_empty
(self)
tests/handlers_tests/get_birthdays_handler_tests.py:34
Methodtest_get_representation_when_multiple_city
(self)
tests/handlers_tests/get_percentile_age_handler_tests.py:73
Methodtest_get_representation_when_one_city
(self)
tests/handlers_tests/get_percentile_age_handler_tests.py:68
Methodtest_group_by_should_group_when_multiple_towns
(self)
tests/handlers_tests/get_percentile_age_handler_tests.py:34
Methodtest_group_by_should_group_when_one_town
(self)
tests/handlers_tests/get_percentile_age_handler_tests.py:30
Methodtest_group_by_should_return_empty_when_citizens_empty
(self)
tests/handlers_tests/get_percentile_age_handler_tests.py:26
Methodtest_import_id_should_increase_for_each_import
(self)
tests/import_post_tests.py:31
Methodtest_import_should_be_correct_when_no_citizens
(self)
tests/import_validator_tests.py:118
Methodtest_import_should_be_correct_with_different_field_order
(self)
tests/import_validator_tests.py:77
Methodtest_import_should_be_incorrect_empty_string
(self, import_data: dict)
tests/import_validator_tests.py:152
Methodtest_import_should_be_incorrect_when_citizen_ids_not_unique
(self, _)
tests/import_validator_tests.py:95
Methodtest_import_should_be_incorrect_when_citizen_is_relative_to_himself
(self, _)
tests/import_validator_tests.py:109
Methodtest_import_should_be_incorrect_when_citizen_relative_not_exists
(self, _)
tests/import_validator_tests.py:114
Methodtest_import_should_be_incorrect_when_containing_extra_fields
(self, import_data: dict)
tests/import_validator_tests.py:91
Methodtest_import_should_be_incorrect_when_gender_not_male_or_female
(self)
tests/import_validator_tests.py:127
Methodtest_import_should_be_incorrect_when_less_then_zero
(self, import_data: dict)
tests/import_validator_tests.py:139
Methodtest_import_should_be_incorrect_when_missing_field
(self, import_data: dict, field_name: str)
tests/import_validator_tests.py:47
Methodtest_import_should_be_incorrect_when_relatives_not_duplex
(self)
tests/import_validator_tests.py:99
Methodtest_import_should_be_incorrect_when_relatives_not_unique
(self, _)
tests/import_validator_tests.py:123
Methodtest_import_should_be_incorrect_when_wrong_type_of_field
(self, import_data: dict, data_type: str)
tests/import_validator_tests.py:74
Methodtest_make_error_response_should_log_exception
(self)
tests/decorators_tests/exception_handler_tests.py:25
Methodtest_make_error_response_should_return_passed_message_and_status
(self, message: str, status_code: int)
tests/decorators_tests/exception_handler_tests.py:20
Methodtest_make_requests_should_return_list_of_length
(self, to_push: set, to_pull: set, expected_db_request
tests/handlers_tests/update_relatives_tests.py:66
Methodtest_make_update_request_should_create_correct_request
(self)
tests/handlers_tests/update_relatives_tests.py:16
Methodtest_make_update_request_should_raise_exception_when_wrong_operation
(self)
tests/handlers_tests/update_relatives_tests.py:12
Methodtest_parse_birth_date_should_do_nothing_when_no_birth_date
(self)
tests/handlers_tests/patch_citizen_handler_tests.py:13
Methodtest_parse_birth_date_should_not_throw_error_when_no_citizens
(self)
tests/handlers_tests/post_import_handler_tests.py:13
Methodtest_parse_birth_date_should_parse_string_to_datetime
(self)
tests/handlers_tests/patch_citizen_handler_tests.py:18
Methodtest_parse_birth_date_should_parse_string_to_datetime_when_multiple_citizens
(self)
tests/handlers_tests/post_import_handler_tests.py:29
Methodtest_parse_birth_date_should_parse_string_to_datetime_when_one_citizen
(self)
tests/handlers_tests/post_import_handler_tests.py:19
Methodtest_parse_birth_should_throw_exception_when_datetime_in_wrong_format
(self, birth_date: str)
tests/handlers_tests/patch_citizen_handler_tests.py:33
Methodtest_parse_birth_should_throw_exception_when_datetime_in_wrong_format
(self, birth_date: str)
tests/handlers_tests/post_import_handler_tests.py:46
Methodtest_patch_should_be_incorrect_empty_string
(self, patch_data: dict)
tests/citizen_patch_validator_tests.py:74
Methodtest_patch_should_be_incorrect_when_apartment_less_then_zero
(self)
tests/citizen_patch_validator_tests.py:60
Methodtest_patch_should_be_incorrect_when_containing_unknown_fields
(self)
tests/citizen_patch_validator_tests.py:56
Methodtest_patch_should_be_incorrect_when_gender_not_male_or_female
(self)
tests/citizen_patch_validator_tests.py:64
Methodtest_patch_should_be_incorrect_when_relatives_contains_citizen_id
(self, _)
tests/citizen_patch_validator_tests.py:47
Methodtest_patch_should_be_incorrect_when_relatives_not_unique
(self, _)
tests/citizen_patch_validator_tests.py:52
Methodtest_patch_should_be_incorrect_when_wrong_type_of_field
(self, patch_data: dict, data_type: str)
tests/citizen_patch_validator_tests.py:43
Methodtest_patch_should_be_invalid_when_additional_fields
(self)
tests/citizen_patch_validator_tests.py:24
Methodtest_patch_should_be_invalid_when_no_fields
(self)
tests/citizen_patch_validator_tests.py:28
Methodtest_should_cache_birthday_data
(self)
tests/birthdays_get_tests.py:34
Methodtest_should_cache_percentile_age_data
(self)
tests/percentile_age_get_tests.py:35
Methodtest_should_delete_birthdays_when_birth_date_in_patch
(self)
tests/citizen_patch_tests.py:106
Methodtest_should_delete_percentile_age_when_birth_date_in_patch
(self)
tests/citizen_patch_tests.py:135
Methodtest_should_delete_percentile_age_when_town_in_patch
(self)
tests/citizen_patch_tests.py:145
Methodtest_should_not_cache_when_birthday_data_in_cache
(self)
tests/birthdays_get_tests.py:40
Methodtest_should_not_cache_when_birthday_data_in_cache
(self)
tests/percentile_age_get_tests.py:41
Methodtest_should_not_delete_birthdays_when_no_relatives_and_no_birth_date
(self)
tests/citizen_patch_tests.py:96
Methodtest_should_not_delete_percentile_age_when_no_town_and_no_birth_date
(self)
tests/citizen_patch_tests.py:125
Methodtest_should_not_raise_when_no_birthday_data
(self)
tests/citizen_patch_tests.py:116
Methodtest_should_not_raise_when_no_percentile_age_data
(self)
tests/citizen_patch_tests.py:155
Methodtest_should_return_bad_request_when_birth_date_wrong_format
(self)
tests/import_post_tests.py:83
Methodtest_should_return_bad_request_when_birth_date_wrong_format
(self)
tests/citizen_patch_tests.py:76
Methodtest_should_return_bad_request_when_id_incorrect
(self)
tests/citizens_get_tests.py:24
Methodtest_should_return_bad_request_when_id_incorrect
(self)
tests/birthdays_get_tests.py:47
Methodtest_should_return_bad_request_when_id_incorrect
(self)
tests/percentile_age_get_tests.py:48
Methodtest_should_return_bad_request_when_incorrect_json
(self)
tests/citizen_patch_tests.py:67
Methodtest_should_return_bad_request_when_no_content_type
(self)
tests/citizen_patch_tests.py:32
Methodtest_should_return_bad_request_when_no_import_or_citizen_found
(self, url: str)
tests/citizen_patch_tests.py:45
Methodtest_should_return_bad_request_when_patch_not_valid
(self)
tests/citizen_patch_tests.py:55
Methodtest_should_return_birthday_data
(self)
tests/birthdays_get_tests.py:18
Methodtest_should_return_cached_birthday_data_when_present
(self)
tests/birthdays_get_tests.py:26
Methodtest_should_return_cached_percentile_age_data_when_present
(self)
tests/percentile_age_get_tests.py:27
Methodtest_should_return_citizens_when_id_correct
(self)
tests/citizens_get_tests.py:17
Methodtest_should_return_correct_birth_date
(self)
tests/citizen_patch_tests.py:86
Methodtest_should_return_percentile_age_data
(self)
tests/percentile_age_get_tests.py:18
Methodtest_successful_import_post_should_return_import_id
(self)
tests/import_post_tests.py:16
Methodtest_update_db_when_patch_received
(self)
tests/citizen_patch_tests.py:22
Methodtest_when_database_error_should_return_bad_request
(self)
tests/import_post_tests.py:53
Methodtest_when_incorrect_json_should_return_bad_request
(self)
tests/import_post_tests.py:64
Methodtest_when_invalid_import_should_return_bad_request
(self)
tests/import_post_tests.py:73
Methodtest_when_no_content_type_should_return_bad_request
(self)
tests/import_post_tests.py:46
Methodtest_write_citizen_update_should_raise_when_citizen_not_found
(self)
tests/handlers_tests/patch_citizen_handler_tests.py:59
Methodtest_write_citizen_update_should_raise_when_import_not_found
(self)
tests/handlers_tests/patch_citizen_handler_tests.py:54
Methodtest_write_citizen_update_should_update_all_fields
(self)
tests/handlers_tests/patch_citizen_handler_tests.py:45
Methodtest_write_citizen_update_should_update_one_field
(self)
tests/handlers_tests/patch_citizen_handler_tests.py:38
Methodtest_write_relatives_update_should_do_nothing_if_requests_empty
(self)
tests/handlers_tests/update_relatives_tests.py:95
Methodtest_write_to_db_should_insert_import_data_in_db
(self)
tests/handlers_tests/post_import_handler_tests.py:66
Methodtest_write_to_db_should_raise_error_when_write_not_acknowledged
(self)
tests/handlers_tests/post_import_handler_tests.py:75
Functionwrap
(*args, **kwargs)
application/decorators/exception_handler.py:34
← previous101–200 of 200, ranked by callers