summaryrefslogtreecommitdiff
path: root/testenv
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-09-30 07:25:52 +0300
committerDevaev Maxim <[email protected]>2020-09-30 07:25:52 +0300
commit630593492abe6f7d6edf15ee05e62e7d0489e36d (patch)
tree2985bad3f9b083200ae6535f4fd42ef1872bc8d5 /testenv
parent3f9c32e9fc518bf7e94a2507bd2e388de3f6f749 (diff)
ignored protected-access for _unpack()
Diffstat (limited to 'testenv')
-rw-r--r--testenv/linters/pylint.ini5
-rw-r--r--testenv/tests/apps/kvmd/test_auth.py2
-rw-r--r--testenv/tests/plugins/auth/__init__.py2
3 files changed, 6 insertions, 3 deletions
diff --git a/testenv/linters/pylint.ini b/testenv/linters/pylint.ini
index 2d0f3de8..1d273038 100644
--- a/testenv/linters/pylint.ini
+++ b/testenv/linters/pylint.ini
@@ -33,7 +33,10 @@ disable =
no-else-return,
len-as-condition,
raise-missing-from,
- protected-access,
+
+[CLASSES]
+exclude-protected =
+ _unpack,
[REPORTS]
msg-template = {symbol} -- {path}:{line}({obj}): {msg}
diff --git a/testenv/tests/apps/kvmd/test_auth.py b/testenv/tests/apps/kvmd/test_auth.py
index 66e54dca..15a7e1e3 100644
--- a/testenv/tests/apps/kvmd/test_auth.py
+++ b/testenv/tests/apps/kvmd/test_auth.py
@@ -43,7 +43,7 @@ from kvmd.plugins.auth import get_auth_service_class
def _make_service_kwargs(path: str) -> Dict:
cls = get_auth_service_class("htpasswd")
scheme = cls.get_plugin_options()
- return make_config({"file": path}, scheme)._unpack() # pylint: disable=protected-access
+ return make_config({"file": path}, scheme)._unpack()
@contextlib.asynccontextmanager
diff --git a/testenv/tests/plugins/auth/__init__.py b/testenv/tests/plugins/auth/__init__.py
index 7d0d0fb4..48bf16e5 100644
--- a/testenv/tests/plugins/auth/__init__.py
+++ b/testenv/tests/plugins/auth/__init__.py
@@ -36,7 +36,7 @@ from kvmd.plugins.auth import get_auth_service_class
async def get_configured_auth_service(name: str, **kwargs: Any) -> AsyncGenerator[BaseAuthService, None]:
service_class = get_auth_service_class(name)
config = make_config(kwargs, service_class.get_plugin_options())
- service = service_class(**config._unpack()) # pylint: disable=protected-access
+ service = service_class(**config._unpack())
try:
yield service
finally: