make tests a module

This commit is contained in:
Jörg Thalheim 2023-12-03 12:26:17 +01:00
parent 2d71dd8d94
commit 1e77cb3235
4 changed files with 9 additions and 12 deletions

0
tests/__init__.py Normal file
View File

View File

@ -1,11 +1,6 @@
import os
import sys
sys.path.append(os.path.dirname(__file__))
pytest_plugins = [
"root",
"command",
"ports",
"sshd",
"tests.root",
"tests.command",
"tests.ports",
"tests.sshd",
]

View File

@ -8,8 +8,9 @@ from sys import platform
from tempfile import TemporaryDirectory
import pytest
from command import Command
from ports import Ports
from .command import Command
from .ports import Ports
class Sshd:

View File

@ -3,10 +3,11 @@ import os
import pwd
import pytest
from sshd import Sshd
from nix_fast_build import async_main
from .sshd import Sshd
def cli(args: list[str]) -> None:
asyncio.run(async_main(args))