Skip to content
Snippets Groups Projects
Unverified Commit 118a55fa authored by Chris Beaven's avatar Chris Beaven Committed by GitHub
Browse files

Comment about the magic `mocker` argument

parent 8096f75d
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,8 @@ from bitshares.asset import Asset
from bitshares import BitShares
# Mocker comes from pytest-mock, providing an easy way to have patched objects
# for the life of the test.
def test_calls(mocker):
asset = Asset("USD", lazy=True, bitshares_instance=BitShares(offline=True))
method = mocker.patch.object(Asset, 'get_call_orders')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment