From ff2704974e3db01761c6075a50271668ea108d15 Mon Sep 17 00:00:00 2001 From: Piotr Migdal Date: Mon, 15 Jan 2024 15:18:32 +0100 Subject: [PATCH] fix linted errors --- tests/integration_tests/test_download_integration.py | 2 -- tests/test_file_name_formatter.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/integration_tests/test_download_integration.py b/tests/integration_tests/test_download_integration.py index d14920f..bedf723 100644 --- a/tests/integration_tests/test_download_integration.py +++ b/tests/integration_tests/test_download_integration.py @@ -41,8 +41,6 @@ def create_basic_args_for_download_runner(test_args: list[str], run_path: Path): ( ["-s", "EmpireDidNothingWrong", "-L", 3], ["-s", "r/EmpireDidNothingWrong", "-L", 3], - ["-s", "r/EmpireDidNothingWrong", "-L", 3], - ["-s", "EmpireDidNothingWrong", "-L", 3], ["-s", "https://www.reddit.com/r/TrollXChromosomes/", "-L", 3], ["-s", "r/TrollXChromosomes/", "-L", 3], ["-s", "TrollXChromosomes/", "-L", 3], diff --git a/tests/test_file_name_formatter.py b/tests/test_file_name_formatter.py index daf6526..fdacf40 100644 --- a/tests/test_file_name_formatter.py +++ b/tests/test_file_name_formatter.py @@ -531,6 +531,6 @@ def test_name_submission( def test_shortened_file_name_ending( test_filename: str, test_ending: str, expected_end: str, test_formatter: FileNameFormatter ): - result = test_formatter.limit_file_name_length(test_filename, test_ending, Path(".")) + result = test_formatter.limit_file_name_length(test_filename, test_ending, Path()) assert result.name.endswith(expected_end) assert len(str(result)) <= FileNameFormatter.find_max_path_length()