diff --git a/bdfr/archiver.py b/bdfr/archiver.py index 3d0d31b6..28a270b2 100644 --- a/bdfr/archiver.py +++ b/bdfr/archiver.py @@ -35,7 +35,7 @@ def download(self): ): logger.debug( f"Submission {submission.id} in {submission.subreddit.display_name} skipped" - f' due to {submission.author.name if submission.author else "DELETED"} being an ignored user' + f" due to {submission.author.name if submission.author else 'DELETED'} being an ignored user" ) continue if submission.id in self.excluded_submission_ids: diff --git a/tests/test_downloader.py b/tests/test_downloader.py index 7b81a853..ba81b803 100644 --- a/tests/test_downloader.py +++ b/tests/test_downloader.py @@ -167,9 +167,7 @@ def test_download_submission_file_exists( folder_contents = list(tmp_path.iterdir()) output = capsys.readouterr() assert len(folder_contents) == 1 - assert ( - "Arneeman_Metagaming isn't always a bad thing_m1hqw6.png" " from submission m1hqw6 already exists" in output.out - ) + assert "Arneeman_Metagaming isn't always a bad thing_m1hqw6.png from submission m1hqw6 already exists" in output.out @pytest.mark.online