aboutsummaryrefslogtreecommitdiff
path: root/tests/test_file_class.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_file_class.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_file_class.py')
-rw-r--r--tests/test_file_class.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_file_class.py b/tests/test_file_class.py
index 8e68239..a8afe55 100644
--- a/tests/test_file_class.py
+++ b/tests/test_file_class.py
@@ -30,7 +30,7 @@ class TestFileClass:
def test_file_with_name_dest(self, file_with_name: File) -> None:
"""The file dest attribute should be the same as the name."""
- assert file_with_name.dest == file_with_name.name
+ assert file_with_name.dest.match(file_with_name.name)
def test_file_with_name_site(self, file_with_name: File) -> None:
"""The file site attribute should equal the default site."""
@@ -38,11 +38,11 @@ class TestFileClass:
def test_file_with_name_and_dest(self, file_with_name_and_dest: File) -> None:
"""The file dest attribute should equal what was passed in."""
- assert file_with_name_and_dest.dest == "bazqux.jpg"
+ assert file_with_name_and_dest.dest.match("bazqux.jpg")
def test_name_and_dest_are_different(self, file_with_name_and_dest: File) -> None:
"""The file name and dest attributes should not be the same."""
- assert file_with_name_and_dest.dest != file_with_name_and_dest.name
+ assert not file_with_name_and_dest.dest.match(file_with_name_and_dest.name)
def test_file_with_name_and_site(self) -> None:
"""Test the attributes of a File created with a name and site.