mirror of
https://github.com/p2p-ld/nwb-linkml.git
synced 2024-11-12 17:54:29 +00:00
trying to debug on CI by abusing warnings lol
This commit is contained in:
parent
3a426454c6
commit
282acc063e
2 changed files with 6 additions and 1 deletions
|
@ -50,7 +50,7 @@ class Config(BaseSettings):
|
|||
return v
|
||||
|
||||
@model_validator(mode='after')
|
||||
def folder_exists(self) -> 'Config':
|
||||
def folders_exist(self) -> 'Config':
|
||||
for field, path in self.model_dump().items():
|
||||
if isinstance(path, Path):
|
||||
path.mkdir(exist_ok=True, parents=True)
|
||||
|
|
|
@ -16,6 +16,7 @@ from nwb_linkml.providers.schema import LinkMLProvider, PydanticProvider
|
|||
import nwb_linkml
|
||||
from nwb_linkml.maps.naming import version_module_case
|
||||
from nwb_linkml.providers.git import DEFAULT_REPOS
|
||||
from nwb_linkml.adapters import NamespacesAdapter
|
||||
|
||||
|
||||
CORE_MODULES = (
|
||||
|
@ -71,6 +72,10 @@ def test_linkml_build_from_yaml(tmp_output_dir):
|
|||
files = [str(f) for f in list(ns_file.parent.glob('*.yaml'))]
|
||||
warnings.warn('\n'.join(files))
|
||||
|
||||
ns_adapter = NamespacesAdapter.from_yaml(ns_file)
|
||||
warnings.warn(pformat(ns_adapter))
|
||||
|
||||
|
||||
provider = LinkMLProvider(path=tmp_output_dir, allow_repo=False)
|
||||
|
||||
res = provider.build_from_yaml(ns_file)
|
||||
|
|
Loading…
Reference in a new issue