| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent cea86ad commit 8096f75
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,4 +4,5 @@ scrypt==0.7.1 | |||
| 4 | 4 | Events==0.2.2 | |
| 5 | 5 | pyyaml | |
| 6 | 6 | pytest | |
| 7 | + pytest-mock | ||
| 7 | 8 | coverage | |
| Original file line number | Diff line number | Diff 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) | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments