aboutsummaryrefslogtreecommitdiff
path: root/tests/test_parse.py
diff options
context:
space:
mode:
authorCody Logan <cody@lokken.dev>2023-11-15 10:36:18 -0800
committerGitHub <noreply@github.com>2023-11-15 10:36:18 -0800
commitbf3a7db6cf83fa7d224d84c47b40cfe32603019c (patch)
treeffeb394c3da9e4a2dcbc6a92caa956d5c83441eb /tests/test_parse.py
parent55a5311ee4da639a65bd60622315f3fff6936c9a (diff)
downloadwikiget-bf3a7db6cf83fa7d224d84c47b40cfe32603019c.tar.gz
wikiget-bf3a7db6cf83fa7d224d84c47b40cfe32603019c.zip
Convert File.dest from a string to a Path (#14)
Diffstat (limited to 'tests/test_parse.py')
-rw-r--r--tests/test_parse.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_parse.py b/tests/test_parse.py
index fb824d4..bec2113 100644
--- a/tests/test_parse.py
+++ b/tests/test_parse.py
@@ -60,7 +60,7 @@ class TestGetDest:
Unless otherwise specified, it should match the filename.
"""
- assert file_with_filename.dest == "Example.jpg"
+ assert file_with_filename.dest.match("Example.jpg")
def test_get_dest_site_with_filename(self, file_with_filename: File) -> None:
"""Test that the file's site attribute is set correctly.
@@ -88,7 +88,7 @@ class TestGetDest:
def test_get_dest_with_url(self, file_with_url: File) -> None:
"""Test that the file's dest attribute is set correctly."""
- assert file_with_url.dest == "Example.jpg"
+ assert file_with_url.dest.match("Example.jpg")
def test_get_dest_site_with_url(self, file_with_url: File) -> None:
"""Test that the file's site attribute is set correctly.