clan-cli: add test_create in clan_lib test folder

This commit is contained in:
Qubasa
2025-05-05 22:16:02 +02:00
parent 2b7e14ab64
commit b90812ecce
11 changed files with 3788 additions and 63 deletions

22
pkgs/clan-cli/conftest.py Normal file
View File

@@ -0,0 +1,22 @@
import pytest
from clan_cli.custom_logger import setup_logging
# Every fixture registered here will be available in clan_cli and clan_lib
pytest_plugins = [
"clan_cli.tests.temporary_dir",
"clan_cli.tests.root",
"clan_cli.tests.sshd",
"clan_cli.tests.hosts",
"clan_cli.tests.command",
"clan_cli.tests.ports",
]
# 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="INFO")