Skip to content

Commit

Permalink
add chc for linux-format path
Browse files Browse the repository at this point in the history
  • Loading branch information
Fan-Feng committed May 30, 2024
1 parent 6746efb commit fa4c415
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions tests/api/test_flexible_calling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit fa4c415

Please sign in to comment.