diff --git a/tests/test_code.py b/tests/test_code.py index 970f090d9036d31afacc77ca35f506137e652212..0dd7b5f0c4663b41c58cf209799441bcd52d29d9 100644 --- a/tests/test_code.py +++ b/tests/test_code.py @@ -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()) diff --git a/tests/test_outils.py b/tests/test_outils.py index c0cb904d3ecd9496d8739075f7e6eebb36d085e2..2143f18b7003813b517d3c2395c41a8520d6f05e 100644 --- a/tests/test_outils.py +++ b/tests/test_outils.py @@ -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) diff --git a/tests/test_process.py b/tests/test_process.py index 37a242c772430ad29c6905c9fdfe30f744dbeb8d..ff40c83af42704aa802c4691d60b5795351d7223 100644 --- a/tests/test_process.py +++ b/tests/test_process.py @@ -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):