Fix test creating unwanted folders

This commit is contained in:
Serene-Arc
2021-03-26 21:42:47 +10:00
committed by Ali Parlakci
parent 3cb51e638b
commit 56347da07e

View File

@@ -46,6 +46,7 @@ def assert_all_results_are_submissions(result_limit: int, results: list[Iterator
def test_determine_directories(tmp_path: Path, downloader_mock: MagicMock): def test_determine_directories(tmp_path: Path, downloader_mock: MagicMock):
downloader_mock.args.directory = tmp_path / 'test' downloader_mock.args.directory = tmp_path / 'test'
downloader_mock.config_directories.user_config_dir = tmp_path
RedditDownloader._determine_directories(downloader_mock) RedditDownloader._determine_directories(downloader_mock)
assert Path(tmp_path / 'test').exists() assert Path(tmp_path / 'test').exists()