11 lines
263 B
Python
11 lines
263 B
Python
from fixtures import *
|
|
from maildirclean.filedir import delete_files
|
|
|
|
|
|
def test_delete_files(sample_email_dir):
|
|
file_list = list(Path(sample_email_dir).glob("*"))
|
|
delete_files(file_list)
|
|
|
|
for file in file_list:
|
|
assert not Path(file).is_file()
|