test.repositories package¶
Submodules¶
test.repositories.test_base_repository module¶
test.repositories.test_host_repository module¶
test.repositories.test_layer_repository module¶
test.repositories.test_layer_strategy module¶
test.repositories.test_listing_repository module¶
- class test.repositories.test_listing_repository.TestListing(methodName='runTest')¶
Bases:
unittest.case.TestCase
- test_build_get_all_by_id_query()¶
- test_build_get_all_query_with_full_filter()¶
- test_get_all_by_id_not_found()¶
- test_get_all_by_id_successful()¶
- test_get_all_with_empty_filter()¶
- test_get_all_with_filter_all_parameters_set()¶
- test_get_all_with_filter_array_params_empty()¶
- test_get_all_with_filter_array_params_no_matches()¶
- test_get_all_with_filter_blank_str_values()¶
- test_get_all_with_filter_by_availability()¶
- test_get_all_with_filter_by_availability_negative_number()¶
- test_get_all_with_filter_by_host_id_negative_number()¶
- test_get_all_with_filter_by_listings_per_host()¶
- test_get_all_with_filter_by_listings_per_host_negative_number()¶
- test_get_all_with_filter_by_min_nights()¶
- test_get_all_with_filter_by_min_nights_negative_number()¶
- test_get_all_with_filter_default_str_values()¶
- test_get_all_with_filter_exact_match_by_host_name()¶
- test_get_all_with_filter_exact_match_by_listing_name()¶
- test_get_all_with_filter_exact_matches_by_host_id()¶
- test_get_all_with_filter_match_by_multiple_room_types()¶
- test_get_all_with_filter_match_by_price_min_price_max_0()¶
- test_get_all_with_filter_match_by_price_min_price_max_invalid_range()¶
- test_get_all_with_filter_match_by_price_min_price_max_negative()¶
- test_get_all_with_filter_match_by_room_type()¶
- test_get_all_with_filter_no_match_by_availability()¶
- test_get_all_with_filter_no_match_by_host_id()¶
- test_get_all_with_filter_no_match_by_host_name()¶
- test_get_all_with_filter_no_match_by_listing_name()¶
- test_get_all_with_filter_no_match_by_listings_per_host()¶
- test_get_all_with_filter_no_match_by_min_nights()¶
- test_get_all_with_filter_no_match_by_neighbourhood_and_area()¶
- test_get_all_with_filter_no_match_by_room_type()¶
- test_get_all_with_filter_several_matches_by_host_name()¶
- test_get_all_with_filter_several_matches_by_listing_name()¶
- test_get_all_with_filter_several_matches_by_neighbourhood_and_area()¶
- test_get_all_with_filter_several_matches_by_neighbourhood_and_area_multiple_input()¶
- test_get_all_with_filter_several_matches_by_price_min_price_max()¶
- test_get_by_id_not_found()¶
- test_get_by_id_successful()¶
- test_get_metadata()¶
test.repositories.test_recommendations_repository module¶
- class test.repositories.test_recommendations_repository.TestRecommendations(methodName='runTest')¶
Bases:
unittest.case.TestCase
- test_compute_n_recommendations_no_dict_provided()¶
- test_compute_n_recommendations_no_target_id_provided()¶
- test_compute_n_recommendations_sample_size_smaller_than_n()¶
- test_compute_n_recommendations_successful()¶
- test_compute_n_recommendations_successful_target_contained_in_dict()¶
- test_euclidean_distance_empty_arrays()¶
- test_euclidean_distance_no_args_provided()¶
- test_euclidean_distance_successful()¶
- test_map_result_successful()¶
- test_recommend_n_listings_n_too_small()¶
- test_recommend_n_listings_no_filter_provided()¶
- test_recommend_n_listings_no_id_provided()¶
- test_recommend_n_listings_no_match_for_id()¶
- test_recommend_n_listings_successful_return_1_recommendation()¶
- test_recommend_n_listings_successful_with_area()¶
- test_recommend_n_listings_successful_with_availability()¶
- test_recommend_n_listings_successful_with_empty_filter()¶
- test_recommend_n_listings_successful_with_full_filter()¶
- test_recommend_n_listings_successful_with_host_id()¶
- test_recommend_n_listings_successful_with_host_name()¶
- test_recommend_n_listings_successful_with_listing_name()¶
- test_recommend_n_listings_successful_with_listings_per_host()¶
- test_recommend_n_listings_successful_with_neighbourhood()¶
- test_recommend_n_listings_successful_with_price_max()¶
- test_recommend_n_listings_successful_with_price_min()¶
- test_recommend_n_listings_successful_with_room_type()¶
- test_recommend_n_listings_unsuccessful_filters_too_restrictive()¶