diff --git a/authentik/core/tests/test_users_api.py b/authentik/core/tests/test_users_api.py index 0d5985dba..ab5db977c 100644 --- a/authentik/core/tests/test_users_api.py +++ b/authentik/core/tests/test_users_api.py @@ -159,7 +159,6 @@ class TestUsersAPI(APITestCase): response = self.client.get( reverse("authentik_api:user-paths"), ) - print(response.content) self.assertEqual(response.status_code, 200) self.assertJSONEqual(response.content.decode(), {"paths": ["users"]}) diff --git a/authentik/flows/management/commands/benchmark.py b/authentik/flows/management/commands/benchmark.py index b02f7519f..66e27a9cb 100644 --- a/authentik/flows/management/commands/benchmark.py +++ b/authentik/flows/management/commands/benchmark.py @@ -32,7 +32,7 @@ class FlowPlanProcess(PROCESS_CLASS): # pragma: no cover def run(self): """Execute 1000 flow plans""" - print(f"Proc {self.index} Running") + LOGGER.info(f"Proc {self.index} Running") def test_inner(): planner = FlowPlanner(self.flow) diff --git a/authentik/stages/email/management/commands/test_email.py b/authentik/stages/email/management/commands/test_email.py index eb9117980..c168e7278 100644 --- a/authentik/stages/email/management/commands/test_email.py +++ b/authentik/stages/email/management/commands/test_email.py @@ -18,7 +18,7 @@ class Command(BaseCommand): if options["stage"]: stages = EmailStage.objects.filter(name=options["stage"]) if not stages.exists(): - print(f"Stage '{options['stage']}' does not exist") + self.stderr.write(f"Stage '{options['stage']}' does not exist") return stage = stages.first() else: diff --git a/tests/e2e/utils.py b/tests/e2e/utils.py index a107b6b40..8ee66f959 100644 --- a/tests/e2e/utils.py +++ b/tests/e2e/utils.py @@ -90,10 +90,8 @@ class SeleniumTestCase(StaticLiveServerTestCase): def output_container_logs(self, container: Optional[Container] = None): """Output the container logs to our STDOUT""" _container = container or self.container - print(f"--------container logs {_container.image.tags[0]}") for log in _container.logs().decode().split("\n"): - print(log) - print(f"--------end container logs {_container.image.tags[0]}") + self.logger.info(log, source="container", container=_container.image.tags[0]) def get_container_specs(self) -> Optional[dict[str, Any]]: """Optionally get container specs which will launched on setup, wait for the container to