tests/e2e: remove logger

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-11-23 19:25:31 +01:00
parent 91fd792f88
commit b2d2e7cbc8
9 changed files with 9 additions and 22 deletions

View File

@ -9,7 +9,6 @@ from docker.models.containers import Container
from docker.types import Healthcheck
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as ec
from structlog.stdlib import get_logger
from authentik.core.models import Application
from authentik.core.tests.utils import create_test_cert
@ -25,8 +24,6 @@ from authentik.providers.oauth2.constants import (
from authentik.providers.oauth2.models import ClientTypes, OAuth2Provider, ScopeMapping
from tests.e2e.utils import USER, SeleniumTestCase, apply_migration, object_manager, retry
LOGGER = get_logger()
@skipUnless(platform.startswith("linux"), "requires local docker")
class TestProviderOAuth2OIDC(SeleniumTestCase):
@ -63,7 +60,7 @@ class TestProviderOAuth2OIDC(SeleniumTestCase):
status = container.attrs.get("State", {}).get("Health", {}).get("Status")
if status == "healthy":
return container
LOGGER.info("Container failed healthcheck")
self.logger.info("Container failed healthcheck")
sleep(1)
@retry()