Commit 62337c53 by Paul Kilgo

fix tear down in user key form test case

parent 741bc86c
...@@ -582,6 +582,11 @@ class UserKeyFormTestCase(BaseTestCase): ...@@ -582,6 +582,11 @@ class UserKeyFormTestCase(BaseTestCase):
cls.key1_path = os.path.join(cls.key_dir, 'key1') cls.key1_path = os.path.join(cls.key_dir, 'key1')
ssh_keygen(comment='comment', file=cls.key1_path) ssh_keygen(comment='comment', file=cls.key1_path)
@classmethod
def tearDownClass(cls):
cls.user1.delete()
super(UserKeyFormTestCase, cls).tearDownClass()
def test_save_without_name(self): def test_save_without_name(self):
instance = UserKey(user=self.user1) instance = UserKey(user=self.user1)
post = { post = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment