~apport-hackers/apport/main

« back to all changes in this revision

Viewing changes to tests/integration/test_ui.py

  • Committer: Simon Chopin
  • Author(s): Benjamin Drung
  • Date: 2023-04-20 14:27:14 UTC
  • Revision ID: git-v1:9aa1cc6b01c9487572a370e531704eaec2594d05
refactor: Increase pylint's max attributes to 9

Increase the allowed maximum attributes to nine and move the overrides
to the individual classes.

Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
 
45
45
 
46
46
class UserInterfaceMock(apport.ui.UserInterface):
 
47
    # pylint: disable=too-many-instance-attributes
47
48
    """Concrete apport.ui.UserInterface suitable for automatic testing"""
48
49
 
49
50
    def __init__(self, argv: typing.Optional[list[str]] = None):
181
182
    "apport.hookutils._root_command_prefix",
182
183
    unittest.mock.MagicMock(return_value=[]),
183
184
)
184
 
class T(unittest.TestCase):
 
185
class T(unittest.TestCase):  # pylint: disable=too-many-instance-attributes
185
186
    TEST_EXECUTABLE = os.path.realpath("/bin/sleep")
186
187
    TEST_ARGS = ["86400"]
187
188