Merge "Removed unnecessary setUp() calls in tests"

This commit is contained in:
Jenkins 2017-09-13 02:56:35 +00:00 committed by Gerrit Code Review
commit 6b78a702b6
9 changed files with 0 additions and 27 deletions

View File

@ -27,9 +27,6 @@ from barbican.tests import utils
class WhenInvokingLoadBodyFunction(utils.BaseTestCase):
"""Tests the load_body function."""
def setUp(self):
super(WhenInvokingLoadBodyFunction, self).setUp()
@mock.patch('pecan.abort')
def test_should_abort_with_read_error(self, mock_pecan_abort):
mock_pecan_abort.side_effect = ValueError('Abort!')

View File

@ -68,9 +68,6 @@ def _setup_entry(name, *args, **kwargs):
class WhenTestingDBCleanUpCommand(utils.RepositoryTestCase):
def setUp(self):
super(WhenTestingDBCleanUpCommand, self).setUp()
def tearDown(self):
super(WhenTestingDBCleanUpCommand, self).tearDown()
repos.rollback()

View File

@ -19,9 +19,6 @@ from barbican.tests import utils as test_utils
class WhenTestingGetContainerID(test_utils.BaseTestCase):
def setUp(self):
super(WhenTestingGetContainerID, self).setUp()
def test_get_container_id_passes(self):
test_ref = 'https://localhost/v1/containers/good_container_ref'
result = hrefs.get_container_id_from_ref(test_ref)

View File

@ -555,9 +555,6 @@ class WhenCreatingNewContainerACLUser(utils.BaseTestCase):
class WhenCreatingNewProjectQuotas(utils.BaseTestCase):
def setUp(self):
super(WhenCreatingNewProjectQuotas, self).setUp()
def test_create_new_project_quotas(self):
project = models.Project()
project.id = '12345'

View File

@ -51,9 +51,6 @@ class MockedManager(object):
class WhenReadingMultipleBackendsConfig(test_utils.MultipleBackendsTestCase):
def setUp(self):
super(WhenReadingMultipleBackendsConfig, self).setUp()
def test_successful_conf_read(self):
ss_plugins = ['ss_p1', 'ss_p2', 'ss_p3']
cr_plugins = ['cr_p1', 'cr_p2', 'cr_p3']

View File

@ -259,9 +259,6 @@ class WhenDenormalizingAfterDecryption(utils.BaseTestCase):
class WhenConvertingKeyFormats(utils.BaseTestCase):
def setUp(self):
super(WhenConvertingKeyFormats, self).setUp()
def test_passes_convert_private_pem_to_der(self):
pem = keys.get_private_key_pem()
expected_der = keys.get_private_key_der()

View File

@ -450,9 +450,6 @@ class BaseCertificateRequestsTestCase(database_utils.RepositoryTestCase):
class WhenIssuingCertificateRequests(BaseCertificateRequestsTestCase):
"""Tests the 'issue_certificate_request()' function."""
def setUp(self):
super(WhenIssuingCertificateRequests, self).setUp()
def tearDown(self):
super(WhenIssuingCertificateRequests, self).tearDown()

View File

@ -536,9 +536,6 @@ def setup_multiple_secret_store_plugins_conf(testcase, store_plugin_names,
class MultipleBackendsTestCase(database_utils.RepositoryTestCase):
def setUp(self):
super(MultipleBackendsTestCase, self).setUp()
def _mock_plugin_settings(self):
kmip_conf = kss.CONF

View File

@ -566,9 +566,6 @@ class ListingCAsTestCase(CATestCommon):
class ProjectCATestCase(CATestCommon):
def setUp(self):
super(ProjectCATestCase, self).setUp()
@depends_on_ca_plugins('snakeoil_ca', 'simple_certificate')
def test_addition_of_project_ca_affects_getting_ca_list(self):
# Getting list of CAs should get the total configured CAs