From 30be9d31c143ddc9c9f291aaa0a735b2d3ba7155 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <h.tomwoerden@indiscale.com> Date: Thu, 2 Jan 2025 15:03:23 +0100 Subject: [PATCH] test file" --- requirements.txt | 1 + test-schema.py | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 test-schema.py diff --git a/requirements.txt b/requirements.txt index 158f0ce..2971a59 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,7 @@ # generated by `pip freeze` aiohappyeyeballs==2.4.3 aiohttp==3.11.8 +staty==1.2.4 aiosignal==1.3.1 arcp==0.2.1 arrow==1.3.0 diff --git a/test-schema.py b/test-schema.py new file mode 100644 index 0000000..fecfd57 --- /dev/null +++ b/test-schema.py @@ -0,0 +1,10 @@ +""" +module description +""" +from importlib import resources + +from caoscrawler.validator import load_json_schema_from_datamodel_yaml, validate + +ruqad_crawler_settings = resources.files('ruqad').joinpath('resources/crawler-settings') +datamodel_yaml_file = ruqad_crawler_settings.joinpath('datamodel.yaml') +schemas = load_json_schema_from_datamodel_yaml(datamodel_yaml_file) -- GitLab