summaryrefslogtreecommitdiff
path: root/cloudinit/net/tests/test_init.py
diff options
context:
space:
mode:
authorDaniel Watkins <oddbloke@ubuntu.com>2020-03-19 12:01:15 -0400
committerGitHub <noreply@github.com>2020-03-19 12:01:15 -0400
commitade47866aa2f81ab0f3baabbb1fc1e484abdb741 (patch)
tree0c28ae27861335a73b035ad68d506cc4ab3bcdb5 /cloudinit/net/tests/test_init.py
parent9db87379b5c04f4c9662eaf81390e702ea63b8b3 (diff)
downloadvyos-cloud-init-ade47866aa2f81ab0f3baabbb1fc1e484abdb741.tar.gz
vyos-cloud-init-ade47866aa2f81ab0f3baabbb1fc1e484abdb741.zip
cloudinit/tests: remove unneeded with_logs configuration (#263)
These classes don't use `self.logs` anywhere in their body, so we can remove the `with_logs = True` setting from them. These instances were found using astpath[0], with the following invocation: astpath "//Name[@id='with_logs' and not(ancestor::ClassDef//Attribute[@attr='logs'])]" [0] https://github.com/hchasestevens/astpath
Diffstat (limited to 'cloudinit/net/tests/test_init.py')
-rw-r--r--cloudinit/net/tests/test_init.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/cloudinit/net/tests/test_init.py b/cloudinit/net/tests/test_init.py
index 5081a337..a965699a 100644
--- a/cloudinit/net/tests/test_init.py
+++ b/cloudinit/net/tests/test_init.py
@@ -341,8 +341,6 @@ class TestGenerateFallbackConfig(CiTestCase):
class TestNetFindFallBackNic(CiTestCase):
- with_logs = True
-
def setUp(self):
super(TestNetFindFallBackNic, self).setUp()
sys_mock = mock.patch('cloudinit.net.get_sys_class_path')
@@ -995,8 +993,6 @@ class TestExtractPhysdevs(CiTestCase):
class TestWaitForPhysdevs(CiTestCase):
- with_logs = True
-
def setUp(self):
super(TestWaitForPhysdevs, self).setUp()
self.add_patch('cloudinit.net.get_interfaces_by_mac',
@@ -1071,8 +1067,6 @@ class TestWaitForPhysdevs(CiTestCase):
class TestNetFailOver(CiTestCase):
- with_logs = True
-
def setUp(self):
super(TestNetFailOver, self).setUp()
self.add_patch('cloudinit.net.util', 'm_util')