Files
clan-core/pkgs/clan-cli/tests/conftest.py
2025-03-25 18:30:11 +01:00

28 lines
629 B
Python

import pytest
from clan_cli.custom_logger import setup_logging
pytest_plugins = [
"temporary_dir",
"root",
"age_keys",
"gpg_keys",
"sshd",
"command",
"ports",
"hosts",
"runtime",
"fixtures_flakes",
"stdout",
"nix_config",
]
# Executed on pytest session start
def pytest_sessionstart(session: pytest.Session) -> None:
# This function will be called once at the beginning of the test session
print("Starting pytest session")
# You can access the session config, items, testsfailed, etc.
print(f"Session config: {session.config}")
setup_logging(level="DEBUG")