Skip to content
Snippets Groups Projects
Commit 0f9b6b6e authored by florian's avatar florian
Browse files

FIX: Remove wrong comment

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