mirror of
https://github.com/Mic92/nix-fast-build.git
synced 2024-10-05 21:58:28 +03:00
make tests a module
This commit is contained in:
parent
2d71dd8d94
commit
1e77cb3235
0
tests/__init__.py
Normal file
0
tests/__init__.py
Normal 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",
|
||||
]
|
||||
|
@ -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:
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user