Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 25, 2024
1 parent 328cd76 commit 1f79a77
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
import os
import shutil


def pytest_configure(config):
"""
A pytest hook to customize the terminal summary.
"""
# Get the environment variable
mermaid_server = os.getenv("MERMAID_INK_SERVER", "Not Set")

mermaid_server = f"\033[92m{mermaid_server}\033[0m" if mermaid_server != "Not Set" else f"\033[91mNot Set\033[0m"
mermaid_server = (
f"\033[92m{mermaid_server}\033[0m"
if mermaid_server != "Not Set"
else "\033[91mNot Set\033[0m"
)
# Print the environment variable at the start
word = " Custom Environment Information "
line = word.center(shutil.get_terminal_size(fallback=(80, 20))[0], "=")
Expand Down

0 comments on commit 1f79a77

Please sign in to comment.