From bf3a7db6cf83fa7d224d84c47b40cfe32603019c Mon Sep 17 00:00:00 2001 From: Cody Logan Date: Wed, 15 Nov 2023 10:36:18 -0800 Subject: Convert File.dest from a string to a Path (#14) --- tests/test_parse.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_parse.py') 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. -- cgit v1.2.3