Skip to content

Commit

Permalink
-Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
thebigG committed Oct 31, 2020
1 parent 0a9dd31 commit b122bee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/config/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')])
Expand All @@ -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):
Expand All @@ -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)])
Expand All @@ -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)])
Expand Down

0 comments on commit b122bee

Please sign in to comment.