test: path fixes

This commit is contained in:
Piotr Dec 2026-07-12 22:33:29 +02:00
parent 2acfcc871f
commit 56aec8982c
Signed by: stawros
GPG key ID: 74B18A3F0F1E99C0
3 changed files with 4 additions and 6 deletions

View file

@ -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()