summaryrefslogtreecommitdiff
path: root/testenv
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-04-28 21:01:03 +0300
committerDevaev Maxim <[email protected]>2019-04-28 21:01:03 +0300
commite13b5027d6093cbacccf49e9af9c46c0dc1ef374 (patch)
tree2369edf0a1811af471d7da2e74701825eac7968a /testenv
parent26338c5acfaf7c05cc3c8605d97e5b1e58a9280c (diff)
load only required plugins
Diffstat (limited to 'testenv')
-rw-r--r--testenv/tests/auth/__init__.py2
-rw-r--r--testenv/tests/auth/test_manager.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/testenv/tests/auth/__init__.py b/testenv/tests/auth/__init__.py
index cdaa6cfb..7d0d0fb4 100644
--- a/testenv/tests/auth/__init__.py
+++ b/testenv/tests/auth/__init__.py
@@ -35,7 +35,7 @@ from kvmd.plugins.auth import get_auth_service_class
@contextlib.asynccontextmanager
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_options())
+ config = make_config(kwargs, service_class.get_plugin_options())
service = service_class(**config._unpack()) # pylint: disable=protected-access
try:
yield service
diff --git a/testenv/tests/auth/test_manager.py b/testenv/tests/auth/test_manager.py
index 45978828..be6b6455 100644
--- a/testenv/tests/auth/test_manager.py
+++ b/testenv/tests/auth/test_manager.py
@@ -42,7 +42,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_options()
+ scheme = cls.get_plugin_options()
return make_config({"file": path}, scheme)._unpack() # pylint: disable=protected-access