do not ask for gopass password in test

This commit is contained in:
Michael Jerger 2023-05-19 16:20:42 +02:00
parent 2a4b1880af
commit c591ab5abe

View file

@ -2,7 +2,10 @@ import os
from pybuilder.core import Project
from src.main.python.ddadevops.domain import DnsRecord
from src.main.python.ddadevops.c4k_build import C4kBuild, add_c4k_mixin_config
from .domain.helper import devops_config
from .domain.helper import (
CredentialsApiMock,
devops_config,
)
def test_c4k_build(tmp_path):
@ -24,6 +27,7 @@ def test_c4k_build(tmp_path):
}
),
)
sut.init_service.credentials_api = CredentialsApiMock({})
sut.initialize_build_dir()
assert sut.build_path() == f"{str_tmp_path}/target/name/c4k-test"