Merge pull request #687 from bigchaindb/bug/251/remove-unnecessary-test

Remove unnecessary test
This commit is contained in:
Tim Daubenschütz 2016-10-17 13:55:43 +02:00 committed by GitHub
commit cbece9df67

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']