Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
Signed-off-by: Jens Langhammer <[email protected]>
  • Loading branch information
BeryJu committed Apr 12, 2024
1 parent d725d92 commit 6dcc132
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions authentik/root/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@

IS_CI = "CI" in environ


@pytest.hookimpl(hookwrapper=True)
def pytest_sessionstart(*_, **__):
"""Clear the console ahead of the pytest output starting"""
if not IS_CI:
print("\x1b[2J\x1b[H")

Check warning on line 14 in authentik/root/test_plugin.py

View check run for this annotation

Codecov / codecov/patch

authentik/root/test_plugin.py#L14

Added line #L14 was not covered by tests
yield


@pytest.hookimpl(trylast=True)
def pytest_report_header(*_, **__):
"""Add authentik version to pytest output"""
return [
f"authentik version: {get_full_version()}"
]
return [f"authentik version: {get_full_version()}"]
1 change: 1 addition & 0 deletions authentik/root/test_runner.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Integrate ./manage.py test with pytest"""

import os
from argparse import ArgumentParser
from unittest import TestCase
Expand Down

0 comments on commit 6dcc132

Please sign in to comment.