From 5bc8b02de6a88535dd02376dc22e2e7631620212 Mon Sep 17 00:00:00 2001 From: funilrys Date: Tue, 19 Dec 2023 18:01:49 +0100 Subject: [PATCH] Fix linting issues --- tests/query/dnss/test_nameserver.py | 6 +++++- tests/query/dnss/test_query_tool.py | 2 +- tests/query/dnss/test_resolver.py | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/query/dnss/test_nameserver.py b/tests/query/dnss/test_nameserver.py index 46dcf3e2f..baeba5957 100644 --- a/tests/query/dnss/test_nameserver.py +++ b/tests/query/dnss/test_nameserver.py @@ -68,6 +68,8 @@ except (ModuleNotFoundError, ImportError): from ... import pyf_test_dataset +# pylint: disable=invalid-field-call + class TestNameserver(unittest.TestCase): """ @@ -92,7 +94,9 @@ def tearDown(self) -> None: del self.config_loader @staticmethod - def fake_resolve_response(data: str) -> object: + def fake_resolve_response( + data: str, + ) -> object: """ Provides a fake resolve response to use. """ diff --git a/tests/query/dnss/test_query_tool.py b/tests/query/dnss/test_query_tool.py index e0e7c7ea8..b2a2b159c 100644 --- a/tests/query/dnss/test_query_tool.py +++ b/tests/query/dnss/test_query_tool.py @@ -64,7 +64,7 @@ from PyFunceble.config.loader import ConfigLoader from PyFunceble.query.dns.query_tool import DNSQueryTool, DNSQueryToolRecord -# pylint: disable=protected-access, too-many-lines +# pylint: disable=protected-access, too-many-lines, invalid-field-call class TestDNSQueryTool(unittest.TestCase): diff --git a/tests/query/dnss/test_resolver.py b/tests/query/dnss/test_resolver.py index ec391561b..c868c44e0 100644 --- a/tests/query/dnss/test_resolver.py +++ b/tests/query/dnss/test_resolver.py @@ -59,6 +59,8 @@ from PyFunceble.config.loader import ConfigLoader from PyFunceble.query.dns.resolver import Resolver +# pylint: disable=invalid-field-call + class TestResolver(unittest.TestCase): """