Add base test class that includes unclaimed temporary and file descriptor test mixins. GitLab issue #309.
This commit is contained in:
@@ -5,8 +5,7 @@ import StringIO
|
||||
import gnupg
|
||||
import mock
|
||||
|
||||
from django.test import TestCase
|
||||
|
||||
from common.tests import BaseTestCase
|
||||
from common.utils import TemporaryFile
|
||||
|
||||
from ..exceptions import (
|
||||
@@ -44,7 +43,7 @@ def mock_recv_keys(self, keyserver, *keyids):
|
||||
return ImportResult()
|
||||
|
||||
|
||||
class KeyTestCase(TestCase):
|
||||
class KeyTestCase(BaseTestCase):
|
||||
def test_key_instance_creation(self):
|
||||
# Creating a Key instance is analogous to importing a key
|
||||
key = Key.objects.create(key_data=TEST_KEY_DATA)
|
||||
|
||||
Reference in New Issue
Block a user