Add tests for merged and unmerged processing including proofs

This commit is contained in:
nolash
2021-10-11 19:13:21 +02:00
parent 09fa8f2a4c
commit 1fce3245d8
4 changed files with 45 additions and 8 deletions

View File

@@ -6,12 +6,13 @@ logg = logging.getLogger(__name__)
class Processor:
def __init__(self, outputs_writer=None, metadata=None, attachment=None, extensions=[]):
def __init__(self, proof=None, attachment=None, metadata=None, outputs_writer=None, extensions=[]):
self.token_address = None
self.extensions = extensions
self.cores = {
'metadata': metadata,
'attachment': attachment,
'proof': proof,
}
self.outputs = []
self.__outputs_writer = outputs_writer
@@ -31,8 +32,9 @@ class Processor:
def process(self):
tasks = [
'metadata',
'proof',
'attachment',
'metadata',
]
for ext in self.extensions:
@@ -45,3 +47,4 @@ class Processor:
continue
v = a.process(token_address=token_address, writer=self.__outputs_writer)
self.outputs.append(v)