diff --git a/api/tests/src/api/opportunities_v1/test_opportunity_route_search.py b/api/tests/src/api/opportunities_v1/test_opportunity_route_search.py index 121561646..e8912e01f 100644 --- a/api/tests/src/api/opportunities_v1/test_opportunity_route_search.py +++ b/api/tests/src/api/opportunities_v1/test_opportunity_route_search.py @@ -723,7 +723,14 @@ def test_search_filters_200( (get_search_request(post_date={"start_date": None, "end_date": "2020-02-01"}), 200), (get_search_request(post_date={"start_date": "2020-01-01", "end_date": "2020-02-01"}), 200), (get_search_request(post_date={"start_date": "I am not a date"}), 422), + (get_search_request(post_date={"start_date": "123-456-789"}), 422), + (get_search_request(post_date={"start_date": "5"}), 422), + (get_search_request(post_date={"start_date": 5}), 422), (get_search_request(post_date={"end_date": "I am not a date"}), 422), + (get_search_request(post_date={"end_date": "123-456-789"}), 422), + (get_search_request(post_date={"end_date": "5"}), 422), + (get_search_request(post_date={"end_date": 5}), 422), + # Close Date (get_search_request(close_date={"start_date": None}), 200), (get_search_request(close_date={"end_date": None}), 200),