1
0
Fork 0
mirror of synced 2024-06-26 18:10:26 +12:00

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):
downloader_mock.args.directory = tmp_path / 'test'
downloader_mock.config_directories.user_config_dir = tmp_path
RedditDownloader._determine_directories(downloader_mock)
assert Path(tmp_path / 'test').exists()