summaryrefslogtreecommitdiff
path: root/src/mango
diff options
context:
space:
mode:
authorJay Doane <jaydoane@apache.org>2020-02-21 13:51:42 -0800
committerJay Doane <jay.s.doane@gmail.com>2020-03-03 16:40:47 -0800
commitec3cf2000c3bbf9e7340480def66f35b43d86ca1 (patch)
tree0a2172170188dedf9565b05c45056bc8044ddb93 /src/mango
parent86ec2f3be092f6b6c1a4aa5757c87ea32da28d9c (diff)
downloadcouchdb-ec3cf2000c3bbf9e7340480def66f35b43d86ca1.tar.gz
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. (cherry picked from commit e05e3cdc8d16d88e7c7af8fbcc4b671b81ac2693)
Diffstat (limited to 'src/mango')
-rw-r--r--src/mango/test/mango.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mango/test/mango.py b/src/mango/test/mango.py
index 03cb85f48..1212b732f 100644
--- a/src/mango/test/mango.py
+++ b/src/mango/test/mango.py
@@ -309,6 +309,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