e2e: add tests for TOTP Setup, static OTP Setup and otp validation

This commit is contained in:
Jens Langhammer
2020-09-25 19:39:49 +02:00
parent f294791d41
commit 769ce1c642
5 changed files with 152 additions and 3 deletions

View File

@ -1,5 +1,4 @@
"""passbook e2e testing utilities"""
from functools import lru_cache
from glob import glob
from importlib.util import module_from_spec, spec_from_file_location
from inspect import getmembers, isfunction
@ -23,7 +22,6 @@ from structlog import get_logger
from passbook.core.models import User
@lru_cache
# pylint: disable=invalid-name
def USER() -> User: # noqa
"""Cached function that always returns pbadmin"""