test.repositories package

Submodules

test.repositories.test_base_repository module

class test.repositories.test_base_repository.BaseRepositoryTest(methodName='runTest')

Bases: unittest.case.TestCase

test_base_repository_methods_not_implemented()
test_map_rt_entire_home_apt()
test_map_rt_input_none()
test_map_rt_private_room()
test_map_rt_shared_room()
test_map_rt_unexpected_input()

test.repositories.test_host_repository module

class test.repositories.test_host_repository.TestHost(methodName='runTest')

Bases: unittest.case.TestCase

test_get_by_id_not_found()
test_get_by_id_successful()

test.repositories.test_layer_repository module

class test.repositories.test_layer_repository.TestLayer(methodName='runTest')

Bases: unittest.case.TestCase

test_complaint_layer()
test_crime_layer()
test_health_layer()

test.repositories.test_layer_strategy module

class test.repositories.test_layer_strategy.TestLayerStrategy(methodName='runTest')

Bases: unittest.case.TestCase

test_crime_layer_build_get_all_query()
test_health_layer_build_get_all_query()

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()

test.repositories.test_review_repository module

class test.repositories.test_review_repository.TestReview(methodName='runTest')

Bases: unittest.case.TestCase

test_get_by_id_empty()
test_get_by_id_successful()

Module contents