Skip to content
Snippets Groups Projects

TST: add test for query and some minor changes

Merged Henrik tom Wörden requested to merge f-query into dev
1 unresolved thread
6 files
+ 150
104
Compare changes
  • Side-by-side
  • Inline

Files

+ 8
6
@@ -364,12 +364,14 @@ class Crawler(object):
break
for key in comp[0]["properties"]:
for attribute in ("datatype", "importance", "unit"):
if (attribute in comp[0]["properties"][key] and
comp[0]["properties"][key][attribute] is not None and
comp[0]["properties"][key][attribute] !=
comp[1]["properties"][key][attribute]):
identical = False
break
if attribute in comp[0]["properties"][key]:
attr_val = comp[0]["properties"][key][attribute]
other_attr_val = (comp[1]["properties"][key][attribute]
if attribute in comp[1]["properties"][key] else None)
if attr_val is not None and atrr_val != other_attr_val:
identical = False
break
if "value" in comp[0]["properties"][key]:
identical = False
Loading