mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Remove extra fields from get_transaction
This commit is contained in:
parent
434797c7bf
commit
c59bda653c
@ -237,7 +237,10 @@ class Bigchain(object):
|
||||
|
||||
else:
|
||||
# Otherwise, check the backlog
|
||||
response = self.connection.run(r.table('backlog').get(txid))
|
||||
response = self.connection.run(r.table('backlog')
|
||||
.get(txid)
|
||||
.without('assignee', 'assignment_timestamp')
|
||||
.default(None))
|
||||
if response:
|
||||
tx_status = self.TX_IN_BACKLOG
|
||||
|
||||
|
@ -131,8 +131,7 @@ class TestBigchainApi(object):
|
||||
b.write_transaction(tx_signed)
|
||||
|
||||
response, status = b.get_transaction(tx_signed["id"], include_status=True)
|
||||
response.pop('assignee')
|
||||
response.pop('assignment_timestamp')
|
||||
|
||||
# add validity information, which will be returned
|
||||
assert util.serialize(tx_signed) == util.serialize(response)
|
||||
assert status == b.TX_IN_BACKLOG
|
||||
|
Loading…
x
Reference in New Issue
Block a user