FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add basic test for Asset.calls property · trubee/python-bitshares@8096f75 · GitHub

Commit 8096f75

Browse files
committed
Add basic test for Asset.calls property
1 parent cea86ad commit 8096f75

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎requirements-test.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ scrypt==0.7.1
44
Events==0.2.2
55
pyyaml
66
pytest
7+
pytest-mock
78
coverage

‎tests/test_asset.py‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from bitshares.asset import Asset
2+
from bitshares import BitShares
3+
4+
5+
def test_calls(mocker):
6+
asset = Asset("USD", lazy=True, bitshares_instance=BitShares(offline=True))
7+
method = mocker.patch.object(Asset, 'get_call_orders')
8+
asset.calls
9+
method.assert_called_with(10)

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL