test: path fixes
This commit is contained in:
parent
2acfcc871f
commit
56aec8982c
3 changed files with 4 additions and 6 deletions
|
|
@ -2,7 +2,7 @@ from git import Repo, Remote
|
|||
from injectable import injectable
|
||||
|
||||
from karl.config import GitConfig, get_settings
|
||||
from model.vcs import Head
|
||||
from karl.model.vcs import Head
|
||||
|
||||
|
||||
@injectable(singleton=True)
|
||||
|
|
|
|||
|
|
@ -8,8 +8,7 @@ from karl.services.mo import Mo
|
|||
|
||||
@pytest.fixture(scope='class')
|
||||
def target_path():
|
||||
# p = Path('tests/files/test1/test.env')
|
||||
p = Path('files/test1/test.env')
|
||||
p = Path('tests/files/test1/test.env')
|
||||
# posprzątaj przed testem, gdyby plik istniał z poprzednich uruchomień
|
||||
if p.exists():
|
||||
p.unlink()
|
||||
|
|
@ -22,8 +21,7 @@ def target_path():
|
|||
@pytest.fixture(scope='class')
|
||||
def test1_content(target_path: Path):
|
||||
mo = Mo(Passwords())
|
||||
mo.process(Path('files/test1/test.mo.env').absolute())
|
||||
# mo.process(Path('tests/files/test1/test.mo.env').absolute())
|
||||
mo.process(Path('tests/files/test1/test.mo.env').absolute())
|
||||
|
||||
assert target_path.absolute().exists()
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
from core import woodpecker
|
||||
from karl.core import woodpecker
|
||||
|
||||
files = [".gitignore", "compose/nginx/docker-compose.yaml", "config/heimdall.kdbx", "files/nginx/cert/fullchain.mo.pem",
|
||||
"files/nginx/cert/key.mo.pem", "files/nginx/conf.d/default.conf", "files/nginx/conf.d/forge.conf",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue