Skip to content

Commit

Permalink
drop all collections when tear down
Browse files Browse the repository at this point in the history
  • Loading branch information
jiji14 committed Dec 20, 2023
1 parent b49046c commit 29a4222
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion emission/tests/coreTests/wrapperTests/TestUserCustomMode.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
class TestUserCustomMode(unittest.TestCase):

def setUp(self):
etc.dropAllCollections(edb._get_current_db())
self.user = User.register('[email protected]')

def testinitialGetUserCustomModes(self):
Expand Down Expand Up @@ -48,6 +47,9 @@ def testDeleteUserCustomMode(self):
mode = self.user.deleteUserCustomMode('test1')
self.assertListEqual(mode, [])

def tearDown(self):
etc.dropAllCollections(edb._get_current_db())


if __name__ == '__main__':
etc.configLogging()
Expand Down

0 comments on commit 29a4222

Please sign in to comment.