Coverage for /opt/conda/envs/apienv/lib/python3.10/site-packages/daiquiri/core/authenticator/test.py: 100%
11 statements
« prev ^ index » next coverage.py v7.6.4, created at 2024-11-14 02:13 +0000
« prev ^ index » next coverage.py v7.6.4, created at 2024-11-14 02:13 +0000
1# -*- coding: utf-8 -*-
2import logging
4from daiquiri.core.authenticator import AuthenticatorInterface
6logger = logging.getLogger(__name__)
9class TestAuthenticator(AuthenticatorInterface):
10 def __init__(self, *args, **kwargs):
11 super().__init__(*args, **kwargs)
12 logger.debug("Loaded: {c}".format(c=self.__class__.__name__))
14 def authenticate(self, username, password):
15 if username in ["abcd", "efgh", "hijk"]:
16 return True
17 else:
18 return False