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