*: cleanup stray print calls
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
28835fbca7
commit
2e2ab55f9e
|
@ -159,7 +159,6 @@ class TestUsersAPI(APITestCase):
|
||||||
response = self.client.get(
|
response = self.client.get(
|
||||||
reverse("authentik_api:user-paths"),
|
reverse("authentik_api:user-paths"),
|
||||||
)
|
)
|
||||||
print(response.content)
|
|
||||||
self.assertEqual(response.status_code, 200)
|
self.assertEqual(response.status_code, 200)
|
||||||
self.assertJSONEqual(response.content.decode(), {"paths": ["users"]})
|
self.assertJSONEqual(response.content.decode(), {"paths": ["users"]})
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ class FlowPlanProcess(PROCESS_CLASS): # pragma: no cover
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
"""Execute 1000 flow plans"""
|
"""Execute 1000 flow plans"""
|
||||||
print(f"Proc {self.index} Running")
|
LOGGER.info(f"Proc {self.index} Running")
|
||||||
|
|
||||||
def test_inner():
|
def test_inner():
|
||||||
planner = FlowPlanner(self.flow)
|
planner = FlowPlanner(self.flow)
|
||||||
|
|
|
@ -18,7 +18,7 @@ class Command(BaseCommand):
|
||||||
if options["stage"]:
|
if options["stage"]:
|
||||||
stages = EmailStage.objects.filter(name=options["stage"])
|
stages = EmailStage.objects.filter(name=options["stage"])
|
||||||
if not stages.exists():
|
if not stages.exists():
|
||||||
print(f"Stage '{options['stage']}' does not exist")
|
self.stderr.write(f"Stage '{options['stage']}' does not exist")
|
||||||
return
|
return
|
||||||
stage = stages.first()
|
stage = stages.first()
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -90,10 +90,8 @@ class SeleniumTestCase(StaticLiveServerTestCase):
|
||||||
def output_container_logs(self, container: Optional[Container] = None):
|
def output_container_logs(self, container: Optional[Container] = None):
|
||||||
"""Output the container logs to our STDOUT"""
|
"""Output the container logs to our STDOUT"""
|
||||||
_container = container or self.container
|
_container = container or self.container
|
||||||
print(f"--------container logs {_container.image.tags[0]}")
|
|
||||||
for log in _container.logs().decode().split("\n"):
|
for log in _container.logs().decode().split("\n"):
|
||||||
print(log)
|
self.logger.info(log, source="container", container=_container.image.tags[0])
|
||||||
print(f"--------end container logs {_container.image.tags[0]}")
|
|
||||||
|
|
||||||
def get_container_specs(self) -> Optional[dict[str, Any]]:
|
def get_container_specs(self) -> Optional[dict[str, Any]]:
|
||||||
"""Optionally get container specs which will launched on setup, wait for the container to
|
"""Optionally get container specs which will launched on setup, wait for the container to
|
||||||
|
|
Reference in New Issue