mirror of
https://github.com/certbot/certbot.git
synced 2026-06-03 22:08:07 -04:00
Removed unnecessary unittest.TestCase.setUp/tearDown calls. (#8264)
This commit is contained in:
parent
71d9dfa86e
commit
b551b6ee73
4 changed files with 0 additions and 9 deletions
|
|
@ -26,8 +26,6 @@ class ApacheTest(unittest.TestCase):
|
|||
config_root="debian_apache_2_4/multiple_vhosts/apache2",
|
||||
vhost_root="debian_apache_2_4/multiple_vhosts/apache2/sites-available"):
|
||||
# pylint: disable=arguments-differ
|
||||
super(ApacheTest, self).setUp()
|
||||
|
||||
self.temp_dir, self.config_dir, self.work_dir = common.dir_setup(
|
||||
test_dir=test_dir,
|
||||
pkg=__name__)
|
||||
|
|
|
|||
|
|
@ -35,7 +35,6 @@ class AuthenticatorTest(unittest.TestCase, dns_test_common.BaseAuthenticatorTest
|
|||
# Remove the dummy credentials from env vars
|
||||
del os.environ["AWS_ACCESS_KEY_ID"]
|
||||
del os.environ["AWS_SECRET_ACCESS_KEY"]
|
||||
super(AuthenticatorTest, self).tearDown()
|
||||
|
||||
def test_perform(self):
|
||||
self.auth._change_txt_record = mock.MagicMock()
|
||||
|
|
@ -128,8 +127,6 @@ class ClientTest(unittest.TestCase):
|
|||
def setUp(self):
|
||||
from certbot_dns_route53._internal.dns_route53 import Authenticator
|
||||
|
||||
super(ClientTest, self).setUp()
|
||||
|
||||
self.config = mock.MagicMock()
|
||||
|
||||
# Set up dummy credentials for testing
|
||||
|
|
@ -142,7 +139,6 @@ class ClientTest(unittest.TestCase):
|
|||
# Remove the dummy credentials from env vars
|
||||
del os.environ["AWS_ACCESS_KEY_ID"]
|
||||
del os.environ["AWS_SECRET_ACCESS_KEY"]
|
||||
super(ClientTest, self).tearDown()
|
||||
|
||||
def test_find_zone_id_for_domain(self):
|
||||
self.client.r53.get_paginator = mock.MagicMock()
|
||||
|
|
|
|||
|
|
@ -185,8 +185,6 @@ class VerifyCertSetup(unittest.TestCase):
|
|||
"""Refactoring for verification tests."""
|
||||
|
||||
def setUp(self):
|
||||
super(VerifyCertSetup, self).setUp()
|
||||
|
||||
self.renewable_cert = mock.MagicMock()
|
||||
self.renewable_cert.cert_path = SS_CERT_PATH
|
||||
self.renewable_cert.chain_path = SS_CERT_PATH
|
||||
|
|
|
|||
|
|
@ -326,7 +326,6 @@ class FileOutputDisplayTest(unittest.TestCase):
|
|||
class NoninteractiveDisplayTest(unittest.TestCase):
|
||||
"""Test non-interactive display. These tests are pretty easy!"""
|
||||
def setUp(self):
|
||||
super(NoninteractiveDisplayTest, self).setUp()
|
||||
self.mock_stdout = mock.MagicMock()
|
||||
self.displayer = display_util.NoninteractiveDisplay(self.mock_stdout)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue