1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
"""
Test that the asdf library integration is working properly.
"""
import asdf
import yaml
def test_manifest_integration(manifest_path):
content = manifest_path.read_bytes()
manifest = yaml.safe_load(content)
asdf_content = asdf.get_config().resource_manager[manifest["id"]]
assert asdf_content == content
def test_schema_integration(schema_path):
content = schema_path.read_bytes()
schema = yaml.safe_load(content)
asdf_content = asdf.get_config().resource_manager[schema["id"]]
assert asdf_content == content
|