Remove cleanup_tempfiles altogether because they are not being used

This commit is contained in:
Micah Lee 2022-02-13 10:40:55 -08:00
parent 33fd639f2a
commit 305abff13c
No known key found for this signature in database
GPG key ID: 403C2657CD994F73
3 changed files with 0 additions and 13 deletions

View file

@ -308,17 +308,13 @@ class TestWeb:
def test_cleanup(self, common_obj, temp_dir_1024):
web = web_obj(temp_dir_1024, common_obj, "share", 3)
temp_file = tempfile.NamedTemporaryFile()
temp_dir = tempfile.TemporaryDirectory()
web.cleanup_tempfiles = [temp_file]
web.cleanup_tempdirs = [temp_dir]
web.cleanup()
assert os.path.exists(temp_file.name) is False
assert os.path.exists(temp_dir.name) is False
assert web.cleanup_tempfiles == []
assert web.cleanup_tempdirs == []