Skip to content

Commit

Permalink
Consolidate 1-off test
Browse files Browse the repository at this point in the history
The "integration" test module has been shrinking over the years, and doesn't provide much distinction from the majority of the test suite.
  • Loading branch information
john-kurkowski committed Nov 13, 2024
1 parent 100da81 commit 3d1bf18
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
13 changes: 0 additions & 13 deletions tests/integration_test.py

This file was deleted.

8 changes: 8 additions & 0 deletions tests/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,14 @@ def test_ipv4_lookalike() -> None:
)


def test_bad_kwargs_no_way_to_fetch() -> None:
"""Test an impossible combination of kwargs that disable all ways to fetch data."""
with pytest.raises(ValueError, match="disable all ways"):
tldextract.TLDExtract(
cache_dir=None, suffix_list_urls=(), fallback_to_snapshot=False
)


def test_cache_permission(
mocker: pytest_mock.MockerFixture, monkeypatch: pytest.MonkeyPatch, tmp_path: Path
) -> None:
Expand Down

0 comments on commit 3d1bf18

Please sign in to comment.