From 8a670ce3642d84cda9a4657d133da2b06b12ef3f Mon Sep 17 00:00:00 2001 From: Siddharth Ravikumar Date: Thu, 19 Feb 2015 22:07:26 -0500 Subject: combox/events.py: now the silo.db is purged after every test method in EventsTest class. --- tests/events_test.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/events_test.py b/tests/events_test.py index 110dfb4..87d36a0 100644 --- a/tests/events_test.py +++ b/tests/events_test.py @@ -226,26 +226,21 @@ class TestEvents(object): """Cleans up things after each test in this class""" purge_nodedirs(self.config) + silo_path = path.join(self.config['silo_dir'], 'silo.db') + os.remove(silo_path) @classmethod def teardown_class(self): """Purge the mess created by this test""" - silo = ComboxSilo(self.config) - rm_shards(self.TEST_FILE, self.config) os.remove(self.lorem_ipsum) rm_shards(self.lorem_ipsum, self.config) - silo.remove(self.lorem_ipsum) rm_shards(self.lorem, self.config) - silo.remove(self.lorem) rm_shards(self.ipsum, self.config) - silo.remove(self.ipsum) - - silo.remove(self.TEST_FILE) rm_nodedirs(self.config) rm_configdir() -- cgit v1.2.3