lash/backmerge #2
@ -5,4 +5,4 @@ alembic==1.4.2
|
|||||||
SQLAlchemy==1.3.20
|
SQLAlchemy==1.3.20
|
||||||
confini>=0.4.1a1,<0.5.0
|
confini>=0.4.1a1,<0.5.0
|
||||||
pyxdg~=0.27
|
pyxdg~=0.27
|
||||||
chainlib~=0.0.10a3
|
chainlib~=0.0.10a5
|
||||||
|
@ -66,16 +66,17 @@ class TestTxBase(TestOtxBase):
|
|||||||
self.to_value = 13
|
self.to_value = 13
|
||||||
|
|
||||||
backend = SQLBackend(self.db.dsn)
|
backend = SQLBackend(self.db.dsn)
|
||||||
tx = {
|
txc = TxCache(
|
||||||
'hash': self.tx_hash,
|
self.tx_hash,
|
||||||
'from': self.alice,
|
self.alice,
|
||||||
'to': self.bob,
|
self.bob,
|
||||||
'source_token': self.foo_token,
|
self.foo_token,
|
||||||
'destination_token': self.bar_token,
|
self.bar_token,
|
||||||
'from_value': self.from_value,
|
self.from_value,
|
||||||
'to_value': self.to_value,
|
self.to_value,
|
||||||
}
|
session=self.session,
|
||||||
backend.cache(tx, session=self.session)
|
)
|
||||||
|
self.session.add(txc)
|
||||||
self.session.commit()
|
self.session.commit()
|
||||||
|
|
||||||
otx = Otx.load(self.tx_hash)
|
otx = Otx.load(self.tx_hash)
|
||||||
|
@ -227,7 +227,7 @@ class TestTxQuery(TestTxBase):
|
|||||||
self.session.commit()
|
self.session.commit()
|
||||||
|
|
||||||
self.assertEqual(count_tx(self.chain_spec, status=StatusBits.IN_NETWORK | StatusBits.FINAL, status_target=StatusBits.IN_NETWORK), 2)
|
self.assertEqual(count_tx(self.chain_spec, status=StatusBits.IN_NETWORK | StatusBits.FINAL, status_target=StatusBits.IN_NETWORK), 2)
|
||||||
self.assertEqual(count_tx(self.chain_spec, address=self.alice, status=StatusBits.IN_NETWORK | StatusBits.FINAL, status_target=StatusBits.IN_NETWORK), 1)
|
self.assertEqual(count_tx(self.chain_spec, sender=self.alice, status=StatusBits.IN_NETWORK | StatusBits.FINAL, status_target=StatusBits.IN_NETWORK), 1)
|
||||||
|
|
||||||
|
|
||||||
def test_account_tx(self):
|
def test_account_tx(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user