mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-09 03:56:10 +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 = [
|
pytest_plugins = [
|
||||||
"direnv_project",
|
"tests.direnv_project",
|
||||||
"root",
|
"tests.root",
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,8 @@ from tempfile import TemporaryDirectory
|
||||||
from typing import Iterator
|
from typing import Iterator
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from procs import run
|
|
||||||
|
from .procs import run
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,9 @@ import sys
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import pytest
|
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:
|
def common_test(direnv_project: DirenvProject) -> None:
|
||||||
run(["nix-collect-garbage"])
|
run(["nix-collect-garbage"])
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,9 @@ import unittest
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from direnv_project import DirenvProject
|
|
||||||
from procs import run
|
from .direnv_project import DirenvProject
|
||||||
|
from .procs import run
|
||||||
|
|
||||||
|
|
||||||
def direnv_exec(
|
def direnv_exec(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue