diff --git a/nwb_linkml/tests/test_adapters/test_adapter_classes.py b/nwb_linkml/tests/test_adapters/test_adapter_classes.py index a4bd8d2..24c1fc1 100644 --- a/nwb_linkml/tests/test_adapters/test_adapter_classes.py +++ b/nwb_linkml/tests/test_adapters/test_adapter_classes.py @@ -5,5 +5,7 @@ from ..fixtures import linkml_schema_bare, linkml_schema, nwb_schema from nwb_linkml.adapters import DatasetAdapter, ClassAdapter def test_build_base(nwb_schema): + # simplest case, nothing special here + dset = DatasetAdapter(cls=nwb_schema.datasets['image']) pass \ No newline at end of file diff --git a/nwb_linkml/tests/test_providers/test_provider_git.py b/nwb_linkml/tests/test_providers/test_provider_git.py index 0df4329..c6b596c 100644 --- a/nwb_linkml/tests/test_providers/test_provider_git.py +++ b/nwb_linkml/tests/test_providers/test_provider_git.py @@ -72,14 +72,13 @@ def test_gitrepo_check(source, commit): repo.clone() assert repo.check() - # check should fail when repo is at wrong commit + # check should not warn but get us to the correct commit assert repo.active_commit == commit repo._git_call('checkout', 'HEAD~10') - with pytest.warns(UserWarning, match=".*wrong commit.*"): - assert not repo.check() - repo.commit = commit - assert repo.active_commit == commit + assert repo.active_commit != commit + # check should pass but switch to proper commit assert repo.check() + assert repo.active_commit == commit # check should fail on repo namespace mismatch old_repo = repo.namespace.repository