fixed test case file cleanup
This commit is contained in:
parent
169f1bb458
commit
73d2a9ea3b
@ -594,6 +594,12 @@ This is an answer.
|
|||||||
self.file_path_txt.unlink()
|
self.file_path_txt.unlink()
|
||||||
self.file_yaml.close()
|
self.file_yaml.close()
|
||||||
self.file_path_yaml.unlink()
|
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:
|
def test_tags_from_file_txt(self) -> None:
|
||||||
tags = Message.tags_from_file(self.file_path_txt)
|
tags = Message.tags_from_file(self.file_path_txt)
|
||||||
@ -671,6 +677,7 @@ class TagsFromDirTestCase(CmmTestCase):
|
|||||||
|
|
||||||
def tearDown(self) -> None:
|
def tearDown(self) -> None:
|
||||||
self.temp_dir.cleanup()
|
self.temp_dir.cleanup()
|
||||||
|
self.temp_dir_no_tags.cleanup()
|
||||||
|
|
||||||
def test_tags_from_dir(self) -> None:
|
def test_tags_from_dir(self) -> None:
|
||||||
all_tags = Message.tags_from_dir(pathlib.Path(self.temp_dir.name))
|
all_tags = Message.tags_from_dir(pathlib.Path(self.temp_dir.name))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user