Skip to content

Commit

Permalink
search tests updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Lvyshnevska committed Jun 23, 2024
1 parent c52ef82 commit 7c31423
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
2 changes: 2 additions & 0 deletions BackEnd/search/tests/test_advanced_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ def test_advanced_search_serializer_fields(self):
"product_info": "fruits from Dnipro",
"founded": 2022,
"address": "Test Country, Test City, St. Test, 1",
"banner": None,
"logo": None,
"person": self.company_kyiv.person_id,
}
]
Expand Down
58 changes: 58 additions & 0 deletions BackEnd/search/tests/test_search_by_name_region.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ def test_get_profile_filtered_by_region_eng_unauthorized(self):
"regions_ukr_display": "Дніпро",
"founded": 2022,
"address": "Test Country, Test City, St. Test, 1",
"banner": None,
"logo": None,
"person": self.company_dnipro.person_id,
"is_saved": False,
}
Expand Down Expand Up @@ -92,6 +94,8 @@ def test_get_profile_filtered_by_region_eng_authorized(self):
"regions_ukr_display": "Дніпро",
"founded": 2022,
"address": "Test Country, Test City, St. Test, 1",
"banner": None,
"logo": None,
"person": self.company_dnipro.person_id,
"is_saved": False,
}
Expand Down Expand Up @@ -121,6 +125,8 @@ def test_get_profile_filtered_by_region_ukr_authorized(self):
"regions_ukr_display": "Дніпро",
"founded": 2022,
"address": "Test Country, Test City, St. Test, 1",
"banner": None,
"logo": None,
"person": self.company_dnipro.person_id,
"is_saved": False,
}
Expand Down Expand Up @@ -149,6 +155,8 @@ def test_get_profile_filtered_by_region_ukr_unauthorized(self):
"regions_ukr_display": "Дніпро",
"founded": 2022,
"address": "Test Country, Test City, St. Test, 1",
"banner": None,
"logo": None,
"person": self.company_dnipro.person_id,
"is_saved": False,
}
Expand Down Expand Up @@ -178,6 +186,8 @@ def test_get_profile_filtered_by_region_ukr_partial_authorized(self):
"regions_ukr_display": "Дніпро",
"founded": 2022,
"address": "Test Country, Test City, St. Test, 1",
"banner": None,
"logo": None,
"person": self.company_dnipro.person_id,
"is_saved": False,
}
Expand Down Expand Up @@ -206,6 +216,8 @@ def test_get_profile_filtered_by_region_ukr_partial_unauthorized(self):
"regions_ukr_display": "Дніпро",
"founded": 2022,
"address": "Test Country, Test City, St. Test, 1",
"banner": None,
"logo": None,
"person": self.company_dnipro.person_id,
"is_saved": False,
}
Expand Down Expand Up @@ -235,6 +247,8 @@ def test_get_profile_filtered_by_region_ukr_lower_case_authorized(self):
"regions_ukr_display": "Дніпро",
"founded": 2022,
"address": "Test Country, Test City, St. Test, 1",
"banner": None,
"logo": None,
"person": self.company_dnipro.person_id,
"is_saved": False,
}
Expand Down Expand Up @@ -290,6 +304,8 @@ def test_get_profile_filtered_by_name_authorized(self):
"regions_ukr_display": "Київ",
"founded": 2022,
"address": "Test Country, Test City, St. Test, 1",
"banner": None,
"logo": None,
"person": self.company_kiev.person_id,
"is_saved": False,
}
Expand Down Expand Up @@ -344,6 +360,8 @@ def test_get_profile_filtered_by_name_and_region_eng_unauthorized(self):
"regions_ukr_display": "Київ",
"founded": 2022,
"address": "Test Country, Test City, St. Test, 1",
"banner": None,
"logo": None,
"person": self.company_kiev.person_id,
"is_saved": False,
}
Expand Down Expand Up @@ -375,6 +393,8 @@ def test_get_profile_filtered_by_name_and_region_eng_authorized(self):
"regions_ukr_display": "Київ",
"founded": 2022,
"address": "Test Country, Test City, St. Test, 1",
"banner": None,
"logo": None,
"person": self.company_kiev.person_id,
"is_saved": False,
}
Expand Down Expand Up @@ -474,6 +494,8 @@ def test_get_profile_filtered_by_name_partially_authorized(self):
"regions_ukr_display": "Київ",
"founded": 2022,
"address": "Test Country, Test City, St. Test, 1",
"banner": None,
"logo": None,
"person": self.company_kiev.person_id,
"is_saved": False,
}
Expand Down Expand Up @@ -502,6 +524,8 @@ def test_get_profile_filtered_by_name_partially_unauthorized(self):
"regions_ukr_display": "Київ",
"founded": 2022,
"address": "Test Country, Test City, St. Test, 1",
"banner": None,
"logo": None,
"person": self.company_kiev.person_id,
"is_saved": False,
}
Expand Down Expand Up @@ -535,6 +559,8 @@ def test_get_profile_filtered_by_name_and_region_eng_partialyy_authorized(
"regions_ukr_display": "Київ",
"founded": 2022,
"address": "Test Country, Test City, St. Test, 1",
"banner": None,
"logo": None,
"person": self.company_kiev.person_id,
"is_saved": False,
}
Expand Down Expand Up @@ -572,6 +598,8 @@ def test_get_profile_ordered_by_name_asc_unauthorized(
"regions_ukr_display": "Харків",
"founded": 2022,
"address": "Test Country, Test City, St. Test, 1",
"banner": None,
"logo": None,
"person": self.company_charkiv.person_id,
"is_saved": False,
},
Expand All @@ -590,6 +618,8 @@ def test_get_profile_ordered_by_name_asc_unauthorized(
"regions_ukr_display": "Чернігів",
"founded": 2022,
"address": "Test Country, Test City, St. Test, 1",
"banner": None,
"logo": None,
"person": self.company_chernigiv.person_id,
"is_saved": False,
},
Expand All @@ -608,6 +638,8 @@ def test_get_profile_ordered_by_name_asc_unauthorized(
"regions_ukr_display": "Дніпро",
"founded": 2022,
"address": "Test Country, Test City, St. Test, 1",
"banner": None,
"logo": None,
"person": self.company_dnipro.person_id,
"is_saved": False,
},
Expand All @@ -626,6 +658,8 @@ def test_get_profile_ordered_by_name_asc_unauthorized(
"regions_ukr_display": "Київ",
"founded": 2022,
"address": "Test Country, Test City, St. Test, 1",
"banner": None,
"logo": None,
"person": self.company_kiev.person_id,
"is_saved": False,
},
Expand Down Expand Up @@ -656,6 +690,8 @@ def test_get_profile_ordered_by_name_asc_authorized(
"regions_ukr_display": "Харків",
"founded": 2022,
"address": "Test Country, Test City, St. Test, 1",
"banner": None,
"logo": None,
"person": self.company_charkiv.person_id,
"is_saved": False,
},
Expand All @@ -674,6 +710,8 @@ def test_get_profile_ordered_by_name_asc_authorized(
"regions_ukr_display": "Чернігів",
"founded": 2022,
"address": "Test Country, Test City, St. Test, 1",
"banner": None,
"logo": None,
"person": self.company_chernigiv.person_id,
"is_saved": False,
},
Expand All @@ -692,6 +730,8 @@ def test_get_profile_ordered_by_name_asc_authorized(
"regions_ukr_display": "Дніпро",
"founded": 2022,
"address": "Test Country, Test City, St. Test, 1",
"banner": None,
"logo": None,
"person": self.company_dnipro.person_id,
"is_saved": False,
},
Expand All @@ -710,6 +750,8 @@ def test_get_profile_ordered_by_name_asc_authorized(
"regions_ukr_display": "Київ",
"founded": 2022,
"address": "Test Country, Test City, St. Test, 1",
"banner": None,
"logo": None,
"person": self.company_kiev.person_id,
"is_saved": False,
},
Expand Down Expand Up @@ -739,6 +781,8 @@ def test_get_profile_ordered_by_name_dsc_unauthorized(
"regions_ukr_display": "Київ",
"founded": 2022,
"address": "Test Country, Test City, St. Test, 1",
"banner": None,
"logo": None,
"person": self.company_kiev.person_id,
"is_saved": False,
},
Expand All @@ -757,6 +801,8 @@ def test_get_profile_ordered_by_name_dsc_unauthorized(
"regions_ukr_display": "Дніпро",
"founded": 2022,
"address": "Test Country, Test City, St. Test, 1",
"banner": None,
"logo": None,
"person": self.company_dnipro.person_id,
"is_saved": False,
},
Expand All @@ -775,6 +821,8 @@ def test_get_profile_ordered_by_name_dsc_unauthorized(
"regions_ukr_display": "Чернігів",
"founded": 2022,
"address": "Test Country, Test City, St. Test, 1",
"banner": None,
"logo": None,
"person": self.company_chernigiv.person_id,
"is_saved": False,
},
Expand All @@ -793,6 +841,8 @@ def test_get_profile_ordered_by_name_dsc_unauthorized(
"regions_ukr_display": "Харків",
"founded": 2022,
"address": "Test Country, Test City, St. Test, 1",
"banner": None,
"logo": None,
"person": self.company_charkiv.person_id,
"is_saved": False,
},
Expand Down Expand Up @@ -823,6 +873,8 @@ def test_get_profile_ordered_by_name_dsc_authorized(
"regions_ukr_display": "Київ",
"founded": 2022,
"address": "Test Country, Test City, St. Test, 1",
"banner": None,
"logo": None,
"person": self.company_kiev.person_id,
"is_saved": False,
},
Expand All @@ -841,6 +893,8 @@ def test_get_profile_ordered_by_name_dsc_authorized(
"regions_ukr_display": "Дніпро",
"founded": 2022,
"address": "Test Country, Test City, St. Test, 1",
"banner": None,
"logo": None,
"person": self.company_dnipro.person_id,
"is_saved": False,
},
Expand All @@ -859,6 +913,8 @@ def test_get_profile_ordered_by_name_dsc_authorized(
"regions_ukr_display": "Чернігів",
"founded": 2022,
"address": "Test Country, Test City, St. Test, 1",
"banner": None,
"logo": None,
"person": self.company_chernigiv.person_id,
"is_saved": False,
},
Expand All @@ -877,6 +933,8 @@ def test_get_profile_ordered_by_name_dsc_authorized(
"regions_ukr_display": "Харків",
"founded": 2022,
"address": "Test Country, Test City, St. Test, 1",
"banner": None,
"logo": None,
"person": self.company_charkiv.person_id,
"is_saved": False,
},
Expand Down

0 comments on commit 7c31423

Please sign in to comment.