From 0eeb4b46dc70fe30f4e2c865ee6578245e5a30f9 Mon Sep 17 00:00:00 2001 From: Serene-Arc Date: Wed, 24 Nov 2021 10:48:06 +1000 Subject: [PATCH] Remove bad test --- tests/test_downloader.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/tests/test_downloader.py b/tests/test_downloader.py index 0cc8dec..e5f0a31 100644 --- a/tests/test_downloader.py +++ b/tests/test_downloader.py @@ -200,20 +200,3 @@ def test_download_submission( RedditDownloader._download_submission(downloader_mock, submission) folder_contents = list(tmp_path.iterdir()) assert len(folder_contents) == expected_files_len - - -@pytest.mark.parametrize('test_ignore_user', ( - 'alice', -)) -def test_download_ignores_user( - test_ignore_user: str, - mock_function: MagicMock, - downloader_mock: MagicMock, -): - downloader_mock.args.ignore_user = test_ignore_user - submission = downloader_mock.reddit_instance.submission(id='m1hqw6') - mock_function.return_value = MagicMock() - mock_function.return_value.__name__ = 'test' - submission.author.name = test_ignore_user - RedditDownloader._download_submission(downloader_mock, submission) - assert mock_function.call_count == 0