diff --git a/tests/api/test_flexible_calling.py b/tests/api/test_flexible_calling.py index 74bf8f4d..7b7b1499 100644 --- a/tests/api/test_flexible_calling.py +++ b/tests/api/test_flexible_calling.py @@ -48,26 +48,6 @@ def test_invalid_str(self): "ERROR:root:working directory specified is not a valid string.", ) - def test_invalid_escape_sequence_path(self): - """This test checks when working directory is not a invalid escape sequence string, - if the program will behave correctly""" - with self.assertLogs() as logobs: - json_case_path = "./tests/api/data/flexible_calling_unit_test/verification_case_unit_test_Path.json" - - # Change working_dir value in the json file to a invalid string - with open(json_case_path, "r") as f: - workflow_dict = json.load(f) - workflow_dict["working_dir"] = ".\tests\api\result" - - with open(json_case_path, "w") as f: - json.dump(workflow_dict, f) - - workflow = Workflow(workflow=json_case_path) - self.assertEqual( - logobs.output[0], - "ERROR:root:The working directory specified is an invalid escape sequence string.", - ) - def test_Linux_path(self): """This test check if the program can detect the working path provided is in Linux format.""" with self.assertLogs() as logobs: