mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Remove unnecessary test
Checking whether or not write_transaction modifies a dict is not relevant anymore, as no dict is passed.
This commit is contained in:
parent
2c0ed0dc13
commit
6346dc1f74
@ -94,15 +94,3 @@ def test_transaction_exists(monkeypatch, items, exists):
|
|||||||
RqlQuery, 'run', lambda x, y: namedtuple('response', 'items')(items))
|
RqlQuery, 'run', lambda x, y: namedtuple('response', 'items')(items))
|
||||||
bigchain = Bigchain(public_key='pubkey', private_key='privkey')
|
bigchain = Bigchain(public_key='pubkey', private_key='privkey')
|
||||||
assert bigchain.transaction_exists('txid') is exists
|
assert bigchain.transaction_exists('txid') is exists
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skip(reason='until tim decides')
|
|
||||||
def test_write_transaction_no_sideffects(b):
|
|
||||||
from rethinkdb.errors import ReqlOpFailedError
|
|
||||||
transaction = {'id': 'abc'}
|
|
||||||
expected = {'id': 'abc'}
|
|
||||||
with pytest.raises(ReqlOpFailedError):
|
|
||||||
b.write_transaction(transaction)
|
|
||||||
assert transaction == expected
|
|
||||||
with pytest.raises(KeyError):
|
|
||||||
transaction['assignee']
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user