Add tests for merged and unmerged processing including proofs
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user