ensure that Arista test destroys the database
Out of order test execution has revealed that the database was not properly cleaned up after each test run. This patch adds a call to clear the database after each test. Fixes bug: 1220784 Change-Id: I8a706887f89f21ede88177e441a3b562fd8f74dc
This commit is contained in:
parent
062ee16e09
commit
9b76de161d
@ -45,6 +45,7 @@ class AristaProvisionedVlansStorageTestCase(base.BaseTestCase):
|
||||
def setUp(self):
|
||||
super(AristaProvisionedVlansStorageTestCase, self).setUp()
|
||||
ndb.configure_db()
|
||||
self.addCleanup(ndb.clear_db)
|
||||
|
||||
def test_tenant_is_remembered(self):
|
||||
tenant_id = 'test'
|
||||
|
Loading…
Reference in New Issue
Block a user