Loading test/unit/tool_util/test_loader_directory.py +4 −2 Original line number Diff line number Diff line Loading @@ -7,7 +7,8 @@ from galaxy.tool_util.loader_directory import is_a_yaml_with_class def test_is_a_yaml_with_class(): with tempfile.NamedTemporaryFile("w", suffix=".yaml", delete=False) as tf: fname = tf.name tf.write("""class: GalaxyWorkflow tf.write( """class: GalaxyWorkflow name: "Test Workflow" inputs: - id: input1 Loading @@ -18,7 +19,8 @@ steps: - tool_id: cat label: first_cat in: input1: input1""") input1: input1""" ) assert is_a_yaml_with_class(fname, ["GalaxyWorkflow"]) os.unlink(fname) Loading
test/unit/tool_util/test_loader_directory.py +4 −2 Original line number Diff line number Diff line Loading @@ -7,7 +7,8 @@ from galaxy.tool_util.loader_directory import is_a_yaml_with_class def test_is_a_yaml_with_class(): with tempfile.NamedTemporaryFile("w", suffix=".yaml", delete=False) as tf: fname = tf.name tf.write("""class: GalaxyWorkflow tf.write( """class: GalaxyWorkflow name: "Test Workflow" inputs: - id: input1 Loading @@ -18,7 +19,8 @@ steps: - tool_id: cat label: first_cat in: input1: input1""") input1: input1""" ) assert is_a_yaml_with_class(fname, ["GalaxyWorkflow"]) os.unlink(fname)