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:
tim 2016-10-17 11:55:30 +02:00
parent 2c0ed0dc13
commit 6346dc1f74

View File

@ -94,15 +94,3 @@ def test_transaction_exists(monkeypatch, items, exists):
RqlQuery, 'run', lambda x, y: namedtuple('response', 'items')(items))
bigchain = Bigchain(public_key='pubkey', private_key='privkey')
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']