Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KonyshevArtem/yandex-academy-task
/ functions
Functions
200 in github.com/KonyshevArtem/yandex-academy-task
⨍
Functions
200
◇
Types & classes
19
↳
Endpoints
11
Method
test_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
Method
test_get_birthdays_should_return_empty_dict_when_citizens_empty
(self)
tests/handlers_tests/get_birthdays_handler_tests.py:8
Method
test_get_birthdays_should_return_empty_when_no_relatives
(self)
tests/handlers_tests/get_birthdays_handler_tests.py:12
Method
test_get_birthdays_when_multiple_relatives
(self)
tests/handlers_tests/get_birthdays_handler_tests.py:23
Method
test_get_birthdays_when_one_relative
(self)
tests/handlers_tests/get_birthdays_handler_tests.py:17
Method
test_get_cached_data_should_read_from_db
(self)
tests/decorators_tests/response_cacher_tests.py:29
Method
test_get_cached_data_should_return_None_when_no_cache
(self)
tests/decorators_tests/response_cacher_tests.py:34
Method
test_get_citizen_data_should_extract_citizen_data_from_db_request
(self)
tests/handlers_tests/patch_citizen_handler_tests.py:65
Method
test_get_citizen_data_should_stringify_birth_date
(self)
tests/handlers_tests/patch_citizen_handler_tests.py:71
Method
test_get_citizens_should_raise_if_not_found
(self)
tests/handlers_tests/shared_tests.py:16
Method
test_get_citizens_should_return_data_if_found
(self)
tests/handlers_tests/shared_tests.py:10
Method
test_get_citizens_should_select_with_projection
(self)
tests/handlers_tests/shared_tests.py:21
Method
test_get_relatives_difference
(self, old_relatives: set, patch_data: dict, expected_to_push: set, expe
tests/handlers_tests/update_relatives_tests.py:53
Method
test_get_relatives_should_make_set_of_relatives
(self)
tests/handlers_tests/update_relatives_tests.py:28
Method
test_get_relatives_should_raise_exception_when_citizen_not_found
(self)
tests/handlers_tests/update_relatives_tests.py:39
Method
test_get_relatives_should_raise_exception_when_import_not_found
(self)
tests/handlers_tests/update_relatives_tests.py:34
Method
test_get_relatives_should_return_set_of_relatives
(self)
tests/handlers_tests/update_relatives_tests.py:22
Method
test_get_representation_should_be_empty_when_percentile_empty
(self)
tests/handlers_tests/get_percentile_age_handler_tests.py:64
Method
test_get_representation_should_return_empty_when_empty_birthdays
(self)
tests/handlers_tests/get_birthdays_handler_tests.py:30
Method
test_get_representation_when_birthdays_not_empty
(self)
tests/handlers_tests/get_birthdays_handler_tests.py:34
Method
test_get_representation_when_multiple_city
(self)
tests/handlers_tests/get_percentile_age_handler_tests.py:73
Method
test_get_representation_when_one_city
(self)
tests/handlers_tests/get_percentile_age_handler_tests.py:68
Method
test_group_by_should_group_when_multiple_towns
(self)
tests/handlers_tests/get_percentile_age_handler_tests.py:34
Method
test_group_by_should_group_when_one_town
(self)
tests/handlers_tests/get_percentile_age_handler_tests.py:30
Method
test_group_by_should_return_empty_when_citizens_empty
(self)
tests/handlers_tests/get_percentile_age_handler_tests.py:26
Method
test_import_id_should_increase_for_each_import
(self)
tests/import_post_tests.py:31
Method
test_import_should_be_correct_when_no_citizens
(self)
tests/import_validator_tests.py:118
Method
test_import_should_be_correct_with_different_field_order
(self)
tests/import_validator_tests.py:77
Method
test_import_should_be_incorrect_empty_string
(self, import_data: dict)
tests/import_validator_tests.py:152
Method
test_import_should_be_incorrect_when_citizen_ids_not_unique
(self, _)
tests/import_validator_tests.py:95
Method
test_import_should_be_incorrect_when_citizen_is_relative_to_himself
(self, _)
tests/import_validator_tests.py:109
Method
test_import_should_be_incorrect_when_citizen_relative_not_exists
(self, _)
tests/import_validator_tests.py:114
Method
test_import_should_be_incorrect_when_containing_extra_fields
(self, import_data: dict)
tests/import_validator_tests.py:91
Method
test_import_should_be_incorrect_when_gender_not_male_or_female
(self)
tests/import_validator_tests.py:127
Method
test_import_should_be_incorrect_when_less_then_zero
(self, import_data: dict)
tests/import_validator_tests.py:139
Method
test_import_should_be_incorrect_when_missing_field
(self, import_data: dict, field_name: str)
tests/import_validator_tests.py:47
Method
test_import_should_be_incorrect_when_relatives_not_duplex
(self)
tests/import_validator_tests.py:99
Method
test_import_should_be_incorrect_when_relatives_not_unique
(self, _)
tests/import_validator_tests.py:123
Method
test_import_should_be_incorrect_when_wrong_type_of_field
(self, import_data: dict, data_type: str)
tests/import_validator_tests.py:74
Method
test_make_error_response_should_log_exception
(self)
tests/decorators_tests/exception_handler_tests.py:25
Method
test_make_error_response_should_return_passed_message_and_status
(self, message: str, status_code: int)
tests/decorators_tests/exception_handler_tests.py:20
Method
test_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
Method
test_make_update_request_should_create_correct_request
(self)
tests/handlers_tests/update_relatives_tests.py:16
Method
test_make_update_request_should_raise_exception_when_wrong_operation
(self)
tests/handlers_tests/update_relatives_tests.py:12
Method
test_parse_birth_date_should_do_nothing_when_no_birth_date
(self)
tests/handlers_tests/patch_citizen_handler_tests.py:13
Method
test_parse_birth_date_should_not_throw_error_when_no_citizens
(self)
tests/handlers_tests/post_import_handler_tests.py:13
Method
test_parse_birth_date_should_parse_string_to_datetime
(self)
tests/handlers_tests/patch_citizen_handler_tests.py:18
Method
test_parse_birth_date_should_parse_string_to_datetime_when_multiple_citizens
(self)
tests/handlers_tests/post_import_handler_tests.py:29
Method
test_parse_birth_date_should_parse_string_to_datetime_when_one_citizen
(self)
tests/handlers_tests/post_import_handler_tests.py:19
Method
test_parse_birth_should_throw_exception_when_datetime_in_wrong_format
(self, birth_date: str)
tests/handlers_tests/patch_citizen_handler_tests.py:33
Method
test_parse_birth_should_throw_exception_when_datetime_in_wrong_format
(self, birth_date: str)
tests/handlers_tests/post_import_handler_tests.py:46
Method
test_patch_should_be_incorrect_empty_string
(self, patch_data: dict)
tests/citizen_patch_validator_tests.py:74
Method
test_patch_should_be_incorrect_when_apartment_less_then_zero
(self)
tests/citizen_patch_validator_tests.py:60
Method
test_patch_should_be_incorrect_when_containing_unknown_fields
(self)
tests/citizen_patch_validator_tests.py:56
Method
test_patch_should_be_incorrect_when_gender_not_male_or_female
(self)
tests/citizen_patch_validator_tests.py:64
Method
test_patch_should_be_incorrect_when_relatives_contains_citizen_id
(self, _)
tests/citizen_patch_validator_tests.py:47
Method
test_patch_should_be_incorrect_when_relatives_not_unique
(self, _)
tests/citizen_patch_validator_tests.py:52
Method
test_patch_should_be_incorrect_when_wrong_type_of_field
(self, patch_data: dict, data_type: str)
tests/citizen_patch_validator_tests.py:43
Method
test_patch_should_be_invalid_when_additional_fields
(self)
tests/citizen_patch_validator_tests.py:24
Method
test_patch_should_be_invalid_when_no_fields
(self)
tests/citizen_patch_validator_tests.py:28
Method
test_should_cache_birthday_data
(self)
tests/birthdays_get_tests.py:34
Method
test_should_cache_percentile_age_data
(self)
tests/percentile_age_get_tests.py:35
Method
test_should_delete_birthdays_when_birth_date_in_patch
(self)
tests/citizen_patch_tests.py:106
Method
test_should_delete_percentile_age_when_birth_date_in_patch
(self)
tests/citizen_patch_tests.py:135
Method
test_should_delete_percentile_age_when_town_in_patch
(self)
tests/citizen_patch_tests.py:145
Method
test_should_not_cache_when_birthday_data_in_cache
(self)
tests/birthdays_get_tests.py:40
Method
test_should_not_cache_when_birthday_data_in_cache
(self)
tests/percentile_age_get_tests.py:41
Method
test_should_not_delete_birthdays_when_no_relatives_and_no_birth_date
(self)
tests/citizen_patch_tests.py:96
Method
test_should_not_delete_percentile_age_when_no_town_and_no_birth_date
(self)
tests/citizen_patch_tests.py:125
Method
test_should_not_raise_when_no_birthday_data
(self)
tests/citizen_patch_tests.py:116
Method
test_should_not_raise_when_no_percentile_age_data
(self)
tests/citizen_patch_tests.py:155
Method
test_should_return_bad_request_when_birth_date_wrong_format
(self)
tests/import_post_tests.py:83
Method
test_should_return_bad_request_when_birth_date_wrong_format
(self)
tests/citizen_patch_tests.py:76
Method
test_should_return_bad_request_when_id_incorrect
(self)
tests/citizens_get_tests.py:24
Method
test_should_return_bad_request_when_id_incorrect
(self)
tests/birthdays_get_tests.py:47
Method
test_should_return_bad_request_when_id_incorrect
(self)
tests/percentile_age_get_tests.py:48
Method
test_should_return_bad_request_when_incorrect_json
(self)
tests/citizen_patch_tests.py:67
Method
test_should_return_bad_request_when_no_content_type
(self)
tests/citizen_patch_tests.py:32
Method
test_should_return_bad_request_when_no_import_or_citizen_found
(self, url: str)
tests/citizen_patch_tests.py:45
Method
test_should_return_bad_request_when_patch_not_valid
(self)
tests/citizen_patch_tests.py:55
Method
test_should_return_birthday_data
(self)
tests/birthdays_get_tests.py:18
Method
test_should_return_cached_birthday_data_when_present
(self)
tests/birthdays_get_tests.py:26
Method
test_should_return_cached_percentile_age_data_when_present
(self)
tests/percentile_age_get_tests.py:27
Method
test_should_return_citizens_when_id_correct
(self)
tests/citizens_get_tests.py:17
Method
test_should_return_correct_birth_date
(self)
tests/citizen_patch_tests.py:86
Method
test_should_return_percentile_age_data
(self)
tests/percentile_age_get_tests.py:18
Method
test_successful_import_post_should_return_import_id
(self)
tests/import_post_tests.py:16
Method
test_update_db_when_patch_received
(self)
tests/citizen_patch_tests.py:22
Method
test_when_database_error_should_return_bad_request
(self)
tests/import_post_tests.py:53
Method
test_when_incorrect_json_should_return_bad_request
(self)
tests/import_post_tests.py:64
Method
test_when_invalid_import_should_return_bad_request
(self)
tests/import_post_tests.py:73
Method
test_when_no_content_type_should_return_bad_request
(self)
tests/import_post_tests.py:46
Method
test_write_citizen_update_should_raise_when_citizen_not_found
(self)
tests/handlers_tests/patch_citizen_handler_tests.py:59
Method
test_write_citizen_update_should_raise_when_import_not_found
(self)
tests/handlers_tests/patch_citizen_handler_tests.py:54
Method
test_write_citizen_update_should_update_all_fields
(self)
tests/handlers_tests/patch_citizen_handler_tests.py:45
Method
test_write_citizen_update_should_update_one_field
(self)
tests/handlers_tests/patch_citizen_handler_tests.py:38
Method
test_write_relatives_update_should_do_nothing_if_requests_empty
(self)
tests/handlers_tests/update_relatives_tests.py:95
Method
test_write_to_db_should_insert_import_data_in_db
(self)
tests/handlers_tests/post_import_handler_tests.py:66
Method
test_write_to_db_should_raise_error_when_write_not_acknowledged
(self)
tests/handlers_tests/post_import_handler_tests.py:75
Function
wrap
(*args, **kwargs)
application/decorators/exception_handler.py:34
← previous
101–200 of 200, ranked by callers