fix argument passing in tests
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
6f1a13b531
commit
7ec9fbbf12
1 changed files with 11 additions and 7 deletions
6
test.py
6
test.py
|
@ -30,6 +30,9 @@ import unittest
|
|||
sys.path.insert(0, os.path.abspath(
|
||||
os.path.join(os.path.dirname(os.path.realpath(__file__)), 'lib')))
|
||||
|
||||
cdist_exec_path = os.path.abspath(
|
||||
os.path.join(os.path.dirname(os.path.realpath(__file__)), "bin/cdist"))
|
||||
|
||||
import cdist
|
||||
import cdist.config
|
||||
import cdist.exec
|
||||
|
@ -85,7 +88,8 @@ class Config(unittest.TestCase):
|
|||
self.temp_dir = tempfile.mkdtemp()
|
||||
self.init_manifest = os.path.join(self.temp_dir, "manifest")
|
||||
self.config = cdist.config.Config("localhost",
|
||||
initial_manifest=self.init_manifest)
|
||||
initial_manifest=self.init_manifest,
|
||||
exec_path=cdist_exec_path)
|
||||
|
||||
def test_initial_manifest_different_parameter(self):
|
||||
manifest_fd = open(self.init_manifest, "w")
|
||||
|
|
Loading…
Reference in a new issue