mirror of
https://github.com/p2p-ld/nwb-linkml.git
synced 2024-09-19 23:44:28 +00:00
14 lines
416 B
Python
14 lines
416 B
Python
|
import pytest
|
||
|
|
||
|
from .fixtures import nwb_core_fixture, tmp_output_dir
|
||
|
|
||
|
from nwb_linkml.maps.namespace import build_schema
|
||
|
from linkml_runtime.dumpers import yaml_dumper
|
||
|
|
||
|
def test_namespace_to_linkml(nwb_core_fixture, tmp_output_dir):
|
||
|
output_file = tmp_output_dir / 'nwb.namespace.yml'
|
||
|
schema = build_schema(nwb_core_fixture['nwb-core']['namespace'].namespaces[0])
|
||
|
|
||
|
yaml_dumper.dump(schema, output_file)
|
||
|
|