mirror of
https://github.com/nix-community/nix-direnv.git
synced 2024-09-11 11:35:54 +03:00
make tests directory a proper python module
This commit is contained in:
parent
b029dbf2df
commit
ae4a4e8e7c
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…
Reference in New Issue
Block a user