Skip to content
Snippets Groups Projects
Commit 484ebadf authored by florian's avatar florian
Browse files

MAINT: Disable warning

parent 48496e4e
No related branches found
No related tags found
2 merge requests!33MAINT: change arguments of create_user,!32MAINT: change arguments of create_user
Pipeline #15097 passed
...@@ -84,14 +84,16 @@ def config_to_yaml(config): ...@@ -84,14 +84,16 @@ def config_to_yaml(config):
def validate_yaml_schema(valobj): def validate_yaml_schema(valobj):
if optional_jsonschema_validate: # TODO: Re-enable warning once the schema has been extended to also cover
with open(os.path.join(os.path.dirname(__file__), "schema-pycaosdb-ini.yml")) as f: # SSS pycaosdb.inis and integration tests.
schema = yaml.load(f, Loader=yaml.SafeLoader) # if optional_jsonschema_validate:
optional_jsonschema_validate(instance=valobj, schema=schema["schema-pycaosdb-ini"]) with open(os.path.join(os.path.dirname(__file__), "schema-pycaosdb-ini.yml")) as f:
else: schema = yaml.load(f, Loader=yaml.SafeLoader)
warnings.warn(""" optional_jsonschema_validate(instance=valobj, schema=schema["schema-pycaosdb-ini"])
Warning: The validation could not be performed because `jsonschema` is not installed. # else:
""") # warnings.warn("""
# Warning: The validation could not be performed because `jsonschema` is not installed.
# """)
def _read_config_files(): def _read_config_files():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment