You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2020/02/22 06:51:03 UTC

[couchdb] 01/02: Clean up mango test dbs

This is an automated email from the ASF dual-hosted git repository.

jaydoane pushed a commit to branch clean-up-after-mango-tests
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit e05e3cdc8d16d88e7c7af8fbcc4b671b81ac2693
Author: Jay Doane <ja...@apache.org>
AuthorDate: Fri Feb 21 13:51:42 2020 -0800

    Clean up mango test dbs
    
    After mango python tests are run, a bunch of dbs are typically left
    around, e.g. `mango_test_048b290b574d4039981893097ab71912`
    
    This deletes those test dbs after they are no longer in use.
---
 src/mango/test/mango.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/mango/test/mango.py b/src/mango/test/mango.py
index 62d6c1b..b871894 100644
--- a/src/mango/test/mango.py
+++ b/src/mango/test/mango.py
@@ -324,6 +324,10 @@ class DbPerClass(unittest.TestCase):
         klass.db = Database(random_db_name())
         klass.db.create(q=1, n=1)
 
+    @classmethod
+    def tearDownClass(klass):
+        klass.db.delete()
+
     def setUp(self):
         self.db = self.__class__.db