mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
make tests directory a proper python module
This commit is contained in:
parent
b029dbf2df
commit
ae4a4e8e7c
5 changed files with 9 additions and 7 deletions
0
tests/__init__.py
Normal file
0
tests/__init__.py
Normal file
|
|
@ -1,4 +1,4 @@
|
|||
pytest_plugins = [
|
||||
"direnv_project",
|
||||
"root",
|
||||
"tests.direnv_project",
|
||||
"tests.root",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -6,7 +6,8 @@ from tempfile import TemporaryDirectory
|
|||
from typing import Iterator
|
||||
|
||||
import pytest
|
||||
from procs import run
|
||||
|
||||
from .procs import run
|
||||
|
||||
|
||||
@dataclass
|
||||
|
|
|
|||
|
|
@ -3,9 +3,9 @@ import sys
|
|||
import unittest
|
||||
|
||||
import pytest
|
||||
from direnv_project import DirenvProject
|
||||
from procs import run
|
||||
|
||||
from .direnv_project import DirenvProject
|
||||
from .procs import run
|
||||
|
||||
def common_test(direnv_project: DirenvProject) -> None:
|
||||
run(["nix-collect-garbage"])
|
||||
|
|
|
|||
|
|
@ -5,8 +5,9 @@ import unittest
|
|||
from typing import Optional
|
||||
|
||||
import pytest
|
||||
from direnv_project import DirenvProject
|
||||
from procs import run
|
||||
|
||||
from .direnv_project import DirenvProject
|
||||
from .procs import run
|
||||
|
||||
|
||||
def direnv_exec(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue