Fix CI: Update Imports on tests

This commit is contained in:
erik 2023-04-19 11:49:21 +02:00
parent 2c65187741
commit 0a85790410
9 changed files with 16 additions and 15 deletions

View file

@ -0,0 +1,2 @@
from .mock_infrastructure import MockReleaseRepository, MockReleaseTypeRepository, MockVersionRepository
from .mock_infrastructure_api import MockGitApi

View file

@ -1,5 +1,5 @@
from pathlib import Path
from src.main.python.ddadevops.release_mixin.infrastructure_api import SystemApi
from src.main.python.ddadevops.infrastructure.release_mixin import SystemApi
class Helper():

View file

@ -1,4 +1,4 @@
from src.main.python.ddadevops.release_mixin.domain import ReleaseType
from src.main.python.ddadevops.domain import ReleaseType
class MockVersion():

View file

@ -1,4 +1,4 @@
from src.main.python.ddadevops.release_mixin.domain import ReleaseType
from src.main.python.ddadevops.domain import ReleaseType
from .mock_domain import MockRelease, MockVersion
from .mock_infrastructure_api import MockGitApi

View file

@ -1,5 +1,5 @@
from pathlib import Path
from src.main.python.ddadevops.release_mixin.domain import Version, ReleaseType, Release
from src.main.python.ddadevops.domain import Version, ReleaseType, Release
def test_version(tmp_path: Path):
version = Version(tmp_path, [1, 2, 3])

View file

@ -1,5 +1,5 @@
from src.main.python.ddadevops.release_mixin.domain import ReleaseType
from src.main.python.ddadevops.release_mixin.infrastructure import ReleaseTypeRepository, VersionRepository, ReleaseRepository
from src.main.python.ddadevops.domain import ReleaseType
from src.main.python.ddadevops.infrastructure.release_mixin import ReleaseTypeRepository, VersionRepository, ReleaseRepository
from .mock_infrastructure_api import MockGitApi, MockEnvironmentApi
from .helper import Helper

View file

@ -1,9 +1,9 @@
from pathlib import Path
import pytest as pt
from src.main.python.ddadevops.release_mixin.infrastructure_api import GitApi, EnvironmentApi, JsonFileHandler
from src.main.python.ddadevops.release_mixin.infrastructure import VersionRepository
from src.main.python.ddadevops.release_mixin.domain import ReleaseType
from src.main.python.ddadevops.infrastructure.release_mixin import GitApi, EnvironmentApi, JsonFileHandler
from src.main.python.ddadevops.infrastructure.release_mixin import VersionRepository
from src.main.python.ddadevops.domain.release import ReleaseType
from .helper import Helper

View file

@ -2,8 +2,8 @@ import pytest as pt
from pathlib import Path
from pybuilder.core import Project
from src.main.python.ddadevops.release_mixin.release_mixin import ReleaseMixin, create_release_mixin_config
from src.main.python.ddadevops.release_mixin.infrastructure_api import GitApi, EnvironmentApi
from src.main.python.ddadevops.release_mixin import ReleaseMixin, create_release_mixin_config
from src.main.python.ddadevops.infrastructure.release_mixin import GitApi, EnvironmentApi
from src.main.python.ddadevops.domain import Devops, ReleaseConfig
from .helper import Helper

View file

@ -1,7 +1,6 @@
from src.main.python.ddadevops.release_mixin.services import PrepareReleaseService, TagAndPushReleaseService
from .mock_infrastructure import MockReleaseRepository, MockReleaseTypeRepository, MockVersionRepository
from .mock_infrastructure_api import MockGitApi
from src.main.python.ddadevops.application import PrepareReleaseService, TagAndPushReleaseService
from src.test.python.release_mixin import MockReleaseRepository, MockReleaseTypeRepository, MockVersionRepository
from src.test.python.release_mixin import MockGitApi
def test_prepare_release_service(): # todo: maybe use mocks for service api tests
# init