Skip to content
This repository was archived by the owner on Nov 5, 2023. It is now read-only.

Commit ecd94b9

Browse files
Update tests for new behavior
1 parent ec4e5b4 commit ecd94b9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pubproxpy/fetcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def _verify_params(self, params):
126126
if val not in opts:
127127
raise ValueError(
128128
f'invalid value "{val}" for "{param}" options are'
129-
f' {opts}'
129+
f" {opts}"
130130
)
131131

132132
if param in self._PARAM_BOUNDS:

tests/test_fetcher.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,16 @@ def test_params():
8282
}
8383

8484
# Check that going out of bounds is a no no
85-
with pytest.raises(AssertionError):
85+
with pytest.raises(ValueError):
8686
_ = ProxyFetcher(last_checked=0)
8787

8888
# Same with choosing an incorrect option
89-
with pytest.raises(AssertionError):
89+
with pytest.raises(ValueError):
9090
# Fat-fingered
9191
_ = ProxyFetcher(level="eilte")
9292

9393
# `countries` and `not_countries` are incompatilbe
94-
with pytest.raises(AssertionError):
94+
with pytest.raises(ValueError):
9595
_ = ProxyFetcher(countries="US", not_countries=["CA", "NK"])
9696

9797
# And now it's time to check everything

0 commit comments

Comments
 (0)