Commit 0fe5fc94 by Amir MOHAMMADI

Make the tests less relaxed

The behavior of jinja2 seems to be different between linux and osx
parent bac33736
Pipeline #17719 passed with stage
in 8 minutes 23 seconds
......@@ -309,12 +309,12 @@ test-{{ k.model.name }}-{{ k.train.database }}-{{ k.eval.database }}
'patch_1-replaymobile-replaymobile',
]
agg_expected = '\n'.join([
agg_expected = [
'',
'',
'test-patch_1-replay-replaymobile',
'test-patch_1-replaymobile-replaymobile',
])
'test-patch_1-replay-replaymobile',
]
tmpdir = tempfile.mkdtemp()
try:
......@@ -340,7 +340,8 @@ test-{{ k.model.name }}-{{ k.train.database }}-{{ k.eval.database }}
nose.tools.eq_(contents, k)
assert os.path.exists(aggout)
with open(aggout, 'rt') as f: contents = f.read()
nose.tools.eq_(contents, agg_expected)
for line in agg_expected:
assert line in contents, contents
finally:
shutil.rmtree(tmpdir)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment