mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-31 09:01:23 -07:00
* Update targets for CI for devel branch; move some targets to stable-2.10.
* Skipping test on RHEL 8.3 (it is already skipped on RHEL 8.2).
* Linting.
* Shut 2.9/2.10 pylint complaints up.
(cherry picked from commit e9551df5ed
)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
43856eaa6f
commit
91571f8bff
14 changed files with 28 additions and 29 deletions
|
@ -4,3 +4,4 @@ skip/freebsd
|
|||
skip/macos
|
||||
skip/osx
|
||||
skip/rhel8.2
|
||||
skip/rhel8.3
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
plugins/callback/hipchat.py pylint:blacklisted-name
|
||||
plugins/connection/lxc.py pylint:blacklisted-name
|
||||
plugins/module_utils/cloud.py pylint:bad-option-value # a pylint test that is disabled was modified over time
|
||||
plugins/module_utils/compat/ipaddress.py no-assert
|
||||
plugins/module_utils/compat/ipaddress.py no-unicode-literals
|
||||
plugins/module_utils/_mount.py future-import-boilerplate
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
plugins/callback/hipchat.py pylint:blacklisted-name
|
||||
plugins/connection/lxc.py pylint:blacklisted-name
|
||||
plugins/module_utils/cloud.py pylint:bad-option-value # a pylint test that is disabled was modified over time
|
||||
plugins/module_utils/compat/ipaddress.py no-assert
|
||||
plugins/module_utils/compat/ipaddress.py no-unicode-literals
|
||||
plugins/module_utils/_mount.py future-import-boilerplate
|
||||
|
|
|
@ -97,7 +97,7 @@ class MonitTest(unittest.TestCase):
|
|||
self.monit.wait_for_monit_to_stop_pending()
|
||||
|
||||
|
||||
@pytest.mark.parametrize('status_name', [name for name in monit.StatusValue.ALL_STATUS])
|
||||
@pytest.mark.parametrize('status_name', monit.StatusValue.ALL_STATUS)
|
||||
def test_status_value(status_name):
|
||||
value = getattr(monit.StatusValue, status_name.upper())
|
||||
status = monit.StatusValue(value)
|
||||
|
|
|
@ -60,7 +60,7 @@ class TestInterfacesFileModule(unittest.TestCase):
|
|||
tofile=os.path.basename(backup))
|
||||
# Restore backup
|
||||
move(backup, path)
|
||||
deltas = [d for d in diffs]
|
||||
deltas = list(diffs)
|
||||
self.assertTrue(len(deltas) == 0)
|
||||
|
||||
def compareInterfacesLinesToFile(self, interfaces_lines, path, testname=None):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue