1
0
mirror of https://github.com/systemd/systemd synced 2025-10-06 00:13:24 +02:00

test-network: disable 'no-member' warning for the Utilities class

The warning is correct, since we don't inherit the necessary
unittest.TestCase class, but that's on purpose, since the Utilities
class is not supposed to be instantiated on its own, but should
complement other classes' definitions which do inherit from the
unittest.TestCase class.
This commit is contained in:
Frantisek Sumsal
2022-02-03 19:13:06 +01:00
parent 283863a116
commit 524cc9d1d8

View File

@@ -586,8 +586,9 @@ def restart_networkd(sleep_sec=0, show_logs=True, remove_state_files=True):
stop_networkd(show_logs, remove_state_files)
start_networkd(sleep_sec)
class Utilities():
# pylint: disable=no-member
def check_link_exists(self, link):
self.assertTrue(link_exists(link))