Skip to content
Snippets Groups Projects

Assert the downloaded stave is the same as uploaded

Merged Alex Toldaiev requested to merge devel_checkTest into devel
1 file
+ 2
0
Compare changes
  • Side-by-side
  • Inline
@@ -119,10 +119,12 @@ def eq_nodes(node_a, node_b):
ch_match = [n for n in node_b['children'] if 'name' in ch and n.get('name') == ch['name']]
if ch_match:
assert len(ch_match) == 1
logging.info(f'found a match by name: {ch["name"]}')
if eq_types_payloads(ch, ch_match[0], dont_log=False):
equal_ch_b = ch_match[0]
else:
logging.warn(f'did not match by name: {ch.get("name")}')
for ch_b in node_b['children']:
if eq_types_payloads(ch, ch_b, dont_log=True):
equal_ch_b = ch_b
Loading