diff --git a/src/main/python/ddadevops/release-mixin/test/test_domain.py b/src/main/python/ddadevops/release-mixin/test/test_domain.py index abef6d1..4413856 100644 --- a/src/main/python/ddadevops/release-mixin/test/test_domain.py +++ b/src/main/python/ddadevops/release-mixin/test/test_domain.py @@ -2,21 +2,10 @@ from pathlib import Path import sys import os -# getting the name of the directory -# where the this file is present. current = os.path.dirname(os.path.realpath(__file__)) - -# Getting the parent directory name -# where the current directory is present. parent = os.path.dirname(current) - -# adding the parent directory to -# the sys.path. sys.path.append(parent) -# now we can import the module in the parent -# directory. - from domain import Version, ReleaseType, Release def test_version(tmp_path: Path): diff --git a/src/main/python/ddadevops/release-mixin/test/test_infrastructure.py b/src/main/python/ddadevops/release-mixin/test/test_infrastructure.py index 7e5f701..3b4c8fc 100644 --- a/src/main/python/ddadevops/release-mixin/test/test_infrastructure.py +++ b/src/main/python/ddadevops/release-mixin/test/test_infrastructure.py @@ -2,21 +2,10 @@ import sys import os from helper import Helper -# getting the name of the directory -# where the this file is present. current = os.path.dirname(os.path.realpath(__file__)) - -# Getting the parent directory name -# where the current directory is present. parent = os.path.dirname(current) - -# adding the parent directory to -# the sys.path. sys.path.append(parent) -# now we can import the module in the parent -# directory. - from domain import ReleaseType from infrastructure import ReleaseTypeRepository, VersionRepository, ReleaseRepository from mock_infrastructure_api import MockGitApi diff --git a/src/main/python/ddadevops/release-mixin/test/test_infrastructure_api.py b/src/main/python/ddadevops/release-mixin/test/test_infrastructure_api.py index e857721..5782159 100644 --- a/src/main/python/ddadevops/release-mixin/test/test_infrastructure_api.py +++ b/src/main/python/ddadevops/release-mixin/test/test_infrastructure_api.py @@ -4,21 +4,10 @@ from helper import Helper import sys import os -# getting the name of the directory -# where the this file is present. current = os.path.dirname(os.path.realpath(__file__)) - -# Getting the parent directory name -# where the current directory is present. parent = os.path.dirname(current) - -# adding the parent directory to -# the sys.path. sys.path.append(parent) -# now we can import the module in the parent -# directory. - from infrastructure_api import GitApi from infrastructure import VersionRepository from domain import ReleaseType diff --git a/src/main/python/ddadevops/release-mixin/test/test_release_mixin.py b/src/main/python/ddadevops/release-mixin/test/test_release_mixin.py index e85360b..0c6a5f0 100644 --- a/src/main/python/ddadevops/release-mixin/test/test_release_mixin.py +++ b/src/main/python/ddadevops/release-mixin/test/test_release_mixin.py @@ -4,20 +4,9 @@ import pytest as pt from pathlib import Path from ddadevops import * -# getting the name of the directory -# where the this file is present. current = os.path.dirname(os.path.realpath(__file__)) - -# Getting the parent directory name -# where the current directory is present. parent = os.path.dirname(current) - -# adding the parent directory to -# the sys.path. sys.path.append(parent) - -# now we can import the module in the parent -# directory. from pybuilder.core import task, init, Project from release_mixin import ReleaseMixin, create_release_mixin_config