Testing Your Contracts
Testing your contracts with SolidByte is pretty straight forward. SolidByte uses pytest as a test runner and provides some useful fixtures to help ease testing.
This is the initialized instance of :class:`web3.Web3` that should already be connected to whatever network you gave on the CLI.
list of addresses of the known local accounts.
Function to update a transaction dict with standard values.
.. autofunction:: solidbyte.testing.fixtures.std_tx
Function to check if a receipt contains an event.
.. autofunction:: solidbyte.testing.fixtures.has_event
Function to pull the event data from a receipt.
.. autofunction:: solidbyte.testing.fixtures.get_event
Here's an example test provided with the
.. literalinclude:: ../solidbyte/templates/templates/erc20/tests/test_erc20.py :pyobject: test_erc20