Skip to content
Snippets Groups Projects

WIP: Modernizing setup.

Merged Daniel Hornung requested to merge f-test-requirements into dev
2 files
+ 10
0
Compare changes
  • Side-by-side
  • Inline

Files

+ 8
0
@@ -3284,6 +3284,7 @@ class Container(list):
if add_to_element is None:
add_to_element = etree.Element("Entities")
noscript_in_supplied_xml = list(add_to_element.iter("noscript", "TransactionBenchmark"))
for m in self.messages:
add_to_element.append(m.to_xml())
@@ -3300,6 +3301,13 @@ class Container(list):
elem = e.to_xml()
add_to_element.append(elem)
# remove noscript and benchmark elements added by this function
for elem in list(add_to_element.iter("noscript", "TransactionBenchmark")):
if elem not in noscript_in_supplied_xml:
parent = elem.getparent()
if parent is not None:
parent.remove(elem)
return add_to_element
def get_errors(self):
Loading