Skip to content
Snippets Groups Projects
Commit ffc2cf11 authored by George Marchment's avatar George Marchment
Browse files

fix tests

parent 9babd60c
No related branches found
No related tags found
1 merge request!7Return non zero code on failure
Pipeline #13261 failed with stage
in 42 seconds
......@@ -9,9 +9,8 @@ class TestCode(unittest.TestCase):
with open("tests/ressources/outils/remove_comments_wo.nf", 'r') as f:
code_wo_comments = f.read()
code = Code(code_with_comments, origin=None)
self.assertEqual(code.code, '\n'+code_with_comments+'\n')
self.assertEqual(code.code_wo_comments, '\n'+code_wo_comments+'\n')
self.assertEqual(code.code_wo_comments.strip(), code_wo_comments.strip())
self.assertEqual(code.get_code(), code_wo_comments.strip())
......@@ -42,5 +42,5 @@ class TestOutils(unittest.TestCase):
with open(candidate := "tests/ressources/outils/remove_comments_wo.candidate.nf", 'w') as f:
f.write(produced)
self.assertEqual(produced, code_wo_comments)
self.assertEqual(produced.strip(), code_wo_comments.strip())
os.unlink(candidate)
......@@ -94,7 +94,7 @@ class TestProcess(unittest.TestCase):
dico['edges'] = []
dico['subworkflows'] = {}
process_DSL2.get_structure(dico)
dico_true = {'nodes': [{'id': str(process_DSL2), 'name': 'OPENMS_FALSEDISCOVERYRATE', 'shape': 'ellipse', 'xlabel': ''}], 'edges': [], 'subworkflows': {}}
dico_true = {'nodes': [{'id': str(process_DSL2), 'name': 'OPENMS_FALSEDISCOVERYRATE', 'shape': 'ellipse', 'xlabel': '', 'fillcolor': ''}], 'edges': [], 'subworkflows': {}}
self.assertEqual(dico, dico_true)
def test_(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment