From 0d29ed279f417d0c7ab846e9b414fa89b303a1f7 Mon Sep 17 00:00:00 2001 From: sneakers-the-rat Date: Wed, 11 Oct 2023 22:21:44 -0700 Subject: [PATCH] hold up can this really be the bug --- nwb_linkml/tests/test_linkml.py | 15 +++++++++++++++ .../tests/test_providers/test_provider_schema.py | 1 - 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 nwb_linkml/tests/test_linkml.py diff --git a/nwb_linkml/tests/test_linkml.py b/nwb_linkml/tests/test_linkml.py new file mode 100644 index 0000000..c9e3634 --- /dev/null +++ b/nwb_linkml/tests/test_linkml.py @@ -0,0 +1,15 @@ +import pytest +import warnings + +def test_hold_up(): + from linkml_runtime.linkml_model import SchemaDefinition, Annotation + schema = SchemaDefinition( + id='myschema', + name='myschema', + annotations=[{'tag':'my_annotation','value':True}] + ) + + warnings.warn('TYPE OF ANNOTATION IS') + warnings.warn(str(type(schema.annotations['my_annotation'].value))) + + diff --git a/nwb_linkml/tests/test_providers/test_provider_schema.py b/nwb_linkml/tests/test_providers/test_provider_schema.py index 4f7d70d..ae0dc7a 100644 --- a/nwb_linkml/tests/test_providers/test_provider_schema.py +++ b/nwb_linkml/tests/test_providers/test_provider_schema.py @@ -84,7 +84,6 @@ def test_linkml_build_from_yaml(tmp_output_dir): - @pytest.mark.skip() @pytest.mark.depends(on=['test_linkml_provider']) @pytest.mark.parametrize(