fixed test case file cleanup

This commit is contained in:
juk0de 2023-08-29 11:35:18 +02:00
parent 169f1bb458
commit 73d2a9ea3b

View File

@ -594,6 +594,12 @@ This is an answer.
self.file_path_txt.unlink()
self.file_yaml.close()
self.file_path_yaml.unlink()
self.file_txt_no_tags.close
self.file_path_txt_no_tags.unlink()
self.file_txt_tags_empty.close
self.file_path_txt_tags_empty.unlink()
self.file_yaml_no_tags.close()
self.file_path_yaml_no_tags.unlink()
def test_tags_from_file_txt(self) -> None:
tags = Message.tags_from_file(self.file_path_txt)
@ -671,6 +677,7 @@ class TagsFromDirTestCase(CmmTestCase):
def tearDown(self) -> None:
self.temp_dir.cleanup()
self.temp_dir_no_tags.cleanup()
def test_tags_from_dir(self) -> None:
all_tags = Message.tags_from_dir(pathlib.Path(self.temp_dir.name))