cwl_utils.tests.test_parser
===========================

.. py:module:: cwl_utils.tests.test_parser

.. autoapi-nested-parse::

   Test the load and save functions for CWL.



Attributes
----------

.. autoapisummary::

   cwl_utils.tests.test_parser.TEST_v1_0_CWL
   cwl_utils.tests.test_parser.TEST_v1_0_CWL_REMOTE
   cwl_utils.tests.test_parser.TEST_v1_2_CWL
   cwl_utils.tests.test_parser.yaml


Functions
---------

.. autoapisummary::

   cwl_utils.tests.test_parser.test_cwl_version
   cwl_utils.tests.test_parser.test_load_document
   cwl_utils.tests.test_parser.test_load_document_with_local_uri
   cwl_utils.tests.test_parser.test_load_document_with_remote_uri
   cwl_utils.tests.test_parser.test_save
   cwl_utils.tests.test_parser.test_latest_parser
   cwl_utils.tests.test_parser.test_shortname
   cwl_utils.tests.test_parser.test_get_id_from_graph
   cwl_utils.tests.test_parser.test_get_default_id_from_graph
   cwl_utils.tests.test_parser.test_get_default_id_from_graph_without_main
   cwl_utils.tests.test_parser.test_graph_load_all
   cwl_utils.tests.test_parser.test_map_ordering_v1_0
   cwl_utils.tests.test_parser.test_map_ordering_v1_1
   cwl_utils.tests.test_parser.test_map_ordering_v1_2


Module Contents
---------------

.. py:data:: TEST_v1_0_CWL

.. py:data:: TEST_v1_0_CWL_REMOTE
   :value: 'https://raw.githubusercontent.com/common-workflow-language/cwl-utils/main/cwl_utils/testdata/md5sum.cwl'


.. py:data:: TEST_v1_2_CWL

.. py:data:: yaml

.. py:function:: test_cwl_version()

   Test cwl_version for a CommandLineTool.


.. py:function:: test_load_document()

   Test load_document for a CommandLineTool.


.. py:function:: test_load_document_with_local_uri()

   Test load_document for a CommandLineTool in a local URI.


.. py:function:: test_load_document_with_remote_uri()

   Test load_document for a CommandLineTool in a remote URI.


.. py:function:: test_save()

   Test save for a list of Process objects with different cwlVersions.


.. py:function:: test_latest_parser()

   Test the `latest` parser is same as cwl_v1_2 (current latest) parser.


.. py:function:: test_shortname()

.. py:function:: test_get_id_from_graph()

   Test loading an explicit id of a CWL document with $graph property.


.. py:function:: test_get_default_id_from_graph()

   Test that loading the default id of a CWL document with $graph property returns the `#main` id.


.. py:function:: test_get_default_id_from_graph_without_main()

   Test that loading the default id of a CWL document with $graph property and no `#main` id throws an error.


.. py:function:: test_graph_load_all()

   Test that we can get all object in a $graph file.


.. py:function:: test_map_ordering_v1_0()

   Confirm that ID map entries are not sorted during parsing, CWL v1.0.


.. py:function:: test_map_ordering_v1_1()

   Confirm that ID map entries are not sorted during parsing, CWL v1.1.


.. py:function:: test_map_ordering_v1_2()

   Confirm that ID map entries are not sorted during parsing, CWL v1.2.


