yaml_to_asdf

asdf.tests.helpers.yaml_to_asdf(yaml_content, yaml_headers=True, standard_version=None)[source]

Given a string of YAML content, adds the extra pre- and post-amble to make it an ASDF file.

Parameters
yaml_contentstring
yaml_headersbool, optional

When True (default) add the standard ASDF YAML headers.

Returns
buffio.BytesIO()

A file-like object containing the ASDF-like content.