Add proper imports
This commit is contained in:
parent
e790bc6eee
commit
80c0799d1a
1 changed files with 20 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue