Skip to content
Snippets Groups Projects
Commit c371bf3a authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

resources

parent ceeb48de
No related branches found
No related tags found
1 merge request!29ENH: new module which allows to register integration tests in caosdb instances
Pipeline #22582 passed with warnings
...@@ -157,6 +157,7 @@ def setup_package(): ...@@ -157,6 +157,7 @@ def setup_package():
install_requires=["caosdb>=0.7.0", install_requires=["caosdb>=0.7.0",
"jsonschema>=4.4.0", "jsonschema>=4.4.0",
"numpy>=1.17.3", "numpy>=1.17.3",
"importlib-resources",
"openpyxl>=3.0.0", "openpyxl>=3.0.0",
"pandas>=1.2.0", "pandas>=1.2.0",
"xlrd>=2.0", "xlrd>=2.0",
......
...@@ -27,6 +27,7 @@ import pytest ...@@ -27,6 +27,7 @@ import pytest
from caosadvancedtools.models.parser import parse_model_from_yaml from caosadvancedtools.models.parser import parse_model_from_yaml
from caosdb import EmptyUniqueQueryError from caosdb import EmptyUniqueQueryError
import os import os
from importlib_resources import files
""" """
This module implements a registration procedure for integration tests which need This module implements a registration procedure for integration tests which need
...@@ -89,7 +90,7 @@ def register_test(): ...@@ -89,7 +90,7 @@ def register_test():
if answer != "y": if answer != "y":
raise RuntimeError("Test registration aborted by user.") raise RuntimeError("Test registration aborted by user.")
model = parse_model_from_yaml(rfp("test_model.yml")) model = parse_model_from_yaml(files("caosadvancedtools.testutils").joinpath("test_model.yml"))
model.sync_data_model(noquestion=True, verbose=False) model.sync_data_model(noquestion=True, verbose=False)
r = db.Record() r = db.Record()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment