Add proper imports

This commit is contained in:
erik 2023-02-20 16:45:36 +01:00
parent e790bc6eee
commit 80c0799d1a

View file

@ -1,7 +1,25 @@
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 version import Version from version import Version
from version_repository import VersionRepository from version_repository import VersionRepository
from release_type import ReleaseType from release_type import ReleaseType
from pathlib import Path
def test_version(): def test_version():
version = Version([1, 2, 3], False) version = Version([1, 2, 3], False)