diff options
author | Daniel Watkins <oddbloke@ubuntu.com> | 2020-07-15 10:26:12 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-15 10:26:12 -0400 |
commit | 4fe576516d65feda17ba78e9265a8e494a195e7b (patch) | |
tree | a4cdbde78f035bfca999c22ce5c1443ecb20c5ae /tests/unittests | |
parent | 25289087e44c9c74543248519e37ca1f11b8a711 (diff) | |
download | vyos-cloud-init-4fe576516d65feda17ba78e9265a8e494a195e7b.tar.gz vyos-cloud-init-4fe576516d65feda17ba78e9265a8e494a195e7b.zip |
cloudinit: remove global disable of pylint W0107 and fix errors (#489)
* cloudinit: remove global disable of pylint W0107 and fix errors
This includes removing a test class which contained no tests but wasn't
detected as empty because of an errant pass statement.
* .pylintrc: update disable comment to match arguments
Diffstat (limited to 'tests/unittests')
-rw-r--r-- | tests/unittests/test_datasource/test_ibmcloud.py | 7 | ||||
-rw-r--r-- | tests/unittests/test_reporting.py | 1 |
2 files changed, 0 insertions, 8 deletions
diff --git a/tests/unittests/test_datasource/test_ibmcloud.py b/tests/unittests/test_datasource/test_ibmcloud.py index 0b54f585..9013ae9f 100644 --- a/tests/unittests/test_datasource/test_ibmcloud.py +++ b/tests/unittests/test_datasource/test_ibmcloud.py @@ -15,13 +15,6 @@ mock = test_helpers.mock D_PATH = "cloudinit.sources.DataSourceIBMCloud." -class TestIBMCloud(test_helpers.CiTestCase): - """Test the datasource.""" - def setUp(self): - super(TestIBMCloud, self).setUp() - pass - - @mock.patch(D_PATH + "_is_xen", return_value=True) @mock.patch(D_PATH + "_is_ibm_provisioning") @mock.patch(D_PATH + "util.blkid") diff --git a/tests/unittests/test_reporting.py b/tests/unittests/test_reporting.py index 6814030e..9f11fd5c 100644 --- a/tests/unittests/test_reporting.py +++ b/tests/unittests/test_reporting.py @@ -349,7 +349,6 @@ class TestReportingEventStack(TestCase): with parent: with child: pass - pass self.assertEqual(report_start.call_count, 0) self.assertEqual(report_finish.call_count, 0) |