Skip to content
Permalink
Browse files

fix unit test and syntax

  • Loading branch information...
sdpython committed Aug 1, 2018
1 parent 017b1a2 commit eaba8035700483cfaee23146c4906b166eb6aa1e
Showing with 4 additions and 2 deletions.
  1. +3 −2 _unittests/ut_jenkinshelper/test_yaml_exe.py
  2. +1 −0 src/pyquickhelper/jenkinshelper/yaml_helper.py
@@ -88,14 +88,15 @@ def test_exe(self):
context = dict(Python34="fake", Python35=os.path.dirname(sys.executable),
Python27=None, Anaconda3=None, Anaconda2=None,
WinPython35=None, project_name="pyquickhelper",
root_path="ROOT", 32")
root_path="ROOT", PLATFORM="win32")
obj, name = load_yaml(yml, context=context)
self.assertTrue(name is not None)
res = list(enumerate_convert_yaml_into_instructions(
obj, variables=context))
for r, var in res:
conv = convert_sequence_into_batch_file(r, variables=var)
self.assertTrue(("%s " % command) in conv)
if ("%s " % command) not in conv:
raise Exception("{0}\n--\n{1}".format(command, conv))
fLOG("####", conv)
ext = "bat" if command == "dir" else "sh"
name = os.path.join(temp, "yml.%s" % ext)
@@ -8,6 +8,7 @@
from ..texthelper.templating import apply_template
from ..filehelper import read_content_ufs
from .yaml_helper_yaml import yaml_load
from .jenkins_helper import get_platform


_jenkins_split = "JENKINS_SPLIT"

0 comments on commit eaba803

Please sign in to comment.
You can’t perform that action at this time.