From b122bee6e7b3a293c58545baeb73bc3cd5ab38f7 Mon Sep 17 00:00:00 2001 From: thebigg Date: Fri, 30 Oct 2020 20:10:11 -0500 Subject: [PATCH] -Cleanup --- tests/config/test_search.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/config/test_search.py b/tests/config/test_search.py index 76c10782..1da47625 100644 --- a/tests/config/test_search.py +++ b/tests/config/test_search.py @@ -88,6 +88,7 @@ def test_search_config_validate_invalid_locale(keywords, province_or_state, loca with pytest.raises(AssertionError, match="Locale not set"): cfg.validate() + @pytest.mark.parametrize('keywords, province_or_state, locale, providers, in_city', [(['Ice Cream', 'Spiderman'], 'Texas', Locale.USA_ENGLISH, [], 'Austin')]) @@ -97,6 +98,7 @@ def test_search_config_validate_invalid_providers(keywords, province_or_state, l with pytest.raises(AssertionError, match="Providers not set"): cfg.validate() + @pytest.mark.parametrize('keywords, province_or_state, locale, providers, in_city', [([], 'Texas', Locale.USA_ENGLISH, [enums.Provider.INDEED], 'Austin')]) def test_search_config_validate_invalid_keywords(keywords, province_or_state, locale, providers, in_city): @@ -105,6 +107,7 @@ def test_search_config_validate_invalid_keywords(keywords, province_or_state, lo with pytest.raises(AssertionError, match='Keywords not set'): cfg.validate() + @pytest.mark.parametrize('keywords, province_or_state, locale, providers, in_city, in_max_listing_days', [(['Ice Cream', 'Spiderman'], Locale.USA_ENGLISH, Locale.USA_ENGLISH, [enums.Provider.INDEED], 'Austin', -1)]) @@ -127,6 +130,7 @@ def test_search_config_validate_domain(keywords, province_or_state, locale, prov with pytest.raises(AssertionError, match="Domain not set"): cfg.validate() + @pytest.mark.parametrize('keywords, province_or_state, locale, providers, in_city, in_remoteness', [(['Ice Cream', 'Spiderman'], 'Texas', Locale.USA_ENGLISH, [enums.Provider.INDEED], 'Austin', Remoteness.UNKNOWN)])