mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
test for vote get_changefeed to make codecov happy
This commit is contained in:
parent
51be4be2f7
commit
d51632a675
@ -584,3 +584,14 @@ def test_vote_no_double_inclusion(b):
|
||||
b.write_block(block)
|
||||
r = vote.Vote().validate_tx(tx, 'other_block_id', 1)
|
||||
assert r == (False, 'other_block_id', 1)
|
||||
|
||||
|
||||
@pytest.mark.genesis
|
||||
def test_vote_changefeed(b):
|
||||
from bigchaindb.pipelines import vote
|
||||
|
||||
changefeed = vote.get_changefeed()
|
||||
tx = dummy_tx(b)
|
||||
block = b.create_block([tx])
|
||||
b.write_block(block)
|
||||
assert changefeed.target() == block.decouple_assets()[1]
|
||||
|
Loading…
x
Reference in New Issue
Block a user