From 6caa02adb173e6f0fac34f252e85cc7ce695d252 Mon Sep 17 00:00:00 2001 From: Serene-Arc Date: Thu, 27 May 2021 15:58:40 +1000 Subject: [PATCH] Update failing test --- tests/test_file_name_formatter.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_file_name_formatter.py b/tests/test_file_name_formatter.py index 1f5d22f..e4c82ac 100644 --- a/tests/test_file_name_formatter.py +++ b/tests/test_file_name_formatter.py @@ -173,9 +173,8 @@ def test_format_multiple_resources(): mocks.append(new_mock) test_formatter = FileNameFormatter('{TITLE}', '', 'ISO') results = test_formatter.format_resource_paths(mocks, Path('.')) - results = set([str(res[0]) for res in results]) - expected = set([str(Path(Path('.'), name).resolve()) - for name in ('test_1.png', 'test_2.png', 'test_3.png', 'test_4.png')]) + results = set([str(res[0].name) for res in results]) + expected = {'test_1.png', 'test_2.png', 'test_3.png', 'test_4.png'} assert results == expected