Skip to content
Snippets Groups Projects
Commit 894c7637 authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files

TST: Use correct quewry in unittest

parent 318e033a
No related branches found
No related tags found
2 merge requests!89ENH: JsonSchemaExporter accepts do_not_create parameter.,!81F schema export references
Pipeline #42775 passed
......@@ -113,7 +113,7 @@ def _make_prop_from_prop(prop: db.Property, additional_properties: bool,
raise NotImplementedError("Files have not been implemented yet.")
else:
values = _retrieve_enum_values(f"RECORD '{prop.datatype}'")
rt = db.execute_query(f"FIND RECORDTYPE with name='{prop.datatype}'", unique=True)
rt = db.execute_query(f"FIND RECORDTYPE WITH name='{prop.datatype}'", unique=True)
subschema = _treat_recordtype(rt, additional_properties,
name_and_description_in_properties,
additional_options_for_text_props,
......
......@@ -44,7 +44,7 @@ def _mock_execute_query(query_string, unique=False, **kwargs):
if query_string == "SELECT name, id FROM RECORD 'OtherType'":
return other_type_records
elif query_string == "FIND RECORDTYPE 'OtherType'" and unique is True:
elif query_string == "FIND RECORDTYPE WITH name='OtherType'" and unique is True:
return other_type_rt
elif query_string == "SELECT name, id FROM RECORD":
return all_records
......
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