Skip to content

Commit

Permalink
chore: Format with ruff 0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Jan 9, 2025
1 parent 131760b commit cfbdf6f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_unihan.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ def test_download(
) -> None:
"""Test Packager.download() against a real data source."""
dest_path = tmp_path / "data" / unihan_mock_zip_pathname
assert (
not dest_path.parent.exists() and not dest_path.parent.is_dir()
), "Test setup: Should not exist yet, core.download() should create them!"
assert not dest_path.parent.exists() and not dest_path.parent.is_dir(), (
"Test setup: Should not exist yet, core.download() should create them!"
)

def urlretrieve(
url: str,
Expand All @@ -125,9 +125,9 @@ def urlretrieve(

core.download(url=unihan_mock_zip_path, dest=dest_path, urlretrieve_fn=urlretrieve)

assert (
dest_path.parent.exists() and dest_path.parent.is_dir()
), "Creates data's parent directory if doesn't exist."
assert dest_path.parent.exists() and dest_path.parent.is_dir(), (
"Creates data's parent directory if doesn't exist."
)


def test_download_mock(
Expand Down

0 comments on commit cfbdf6f

Please sign in to comment.