diff options
author | Siddharth Ravikumar <sravik@bgsu.edu> | 2015-02-19 22:07:26 -0500 |
---|---|---|
committer | Siddharth Ravikumar <sravik@bgsu.edu> | 2015-02-19 22:07:26 -0500 |
commit | 8a670ce3642d84cda9a4657d133da2b06b12ef3f (patch) | |
tree | 1b5ce093cff7a4d5ec9c65ec0ee458ead66e880f /tests/events_test.py | |
parent | bd52ab66c8b60bb7882a8dd0fb513e2f7519d8e4 (diff) |
combox/events.py: now the silo.db is purged after every test method in EventsTest class.
Diffstat (limited to 'tests/events_test.py')
-rw-r--r-- | tests/events_test.py | 9 |
1 files 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() |