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
+ 3
1
Compare changes
  • Side-by-side
  • Inline
@@ -4,7 +4,7 @@ import pyconfigdb
import functions_configDB as fxt
import logging
import datetime
from configdb_stripsRunkeys import get_subnode_of_type, get_node_with_payload, get_node_payload, node_repr
from configdb_stripsRunkeys import get_subnode_of_type, get_node_with_payload, get_node_payload, node_repr, RunkeyNode
from configdb_operations import upload_stave
@@ -61,6 +61,8 @@ downloaded_stave = get_node_with_payload(staves_subtree['children'], 'staveName'
logging.info(f'Found our stave {stave_name} in the downloaded runkey: {downloaded_stave}')
assert downloaded_stave is not None
downloaded_stave = RunkeyNode(downloaded_stave['type'], downloaded_stave['payloads'], downloaded_stave['children'])
# confirm that the downloaded stave is the same as the original node
def eq_types_payloads(node_a, node_b, dont_log=False):
if dont_log:
Loading