pytest-ethereum-old
pytest-ethereum-old copied to clipboard
py.test plugin for testing Ethereum smart contracts
Since gas cost is zero, there is no reasonable need for `estimateGas` prior to a transaction. Supplying custom gas amount will skip this step in web3py. Suggestion is to build...
Don't leverage (Implicit|Concise)Contract here, instead inherit from `web3.contract.Contract` and define API internally for how this would work. Suggestion is to copy Concise, not Implicit. Implicit transact is too... implicit
Set it to 3m gas or so (something reasonable), allow it to be configurable if someone wants to globally keep any one function they're testing below a certain limit.
I have this kwarg rewrite hack here, but it's not great: https://github.com/fubuloubu/pytest-ethereum/blob/da7f9f19c10b6bb6bd50a3fc75836672efeccf3f/pytest_ethereum/contract.py#L96-L99 The contract factory does not inherent this easier API from `ConciseContract`/`ImplicitContract`, but I was trying to leverage them...
Add docs (auto-build using RTD), ensure project management stuff is up to spec (CI, bumpversion, etc.), and add a README to pypi. Maybe even get this project absorbed into Ethereum's...
Populus will leverage pytest plugin that allows for easy testing of smart contracts in it's project management interface. Help integrate this functionality as a separate tool, hopefully leveraging the assets...
@jacqueswww just completed a rewrite of the Vyper test codebase. Check it out here: https://github.com/ethereum/vyper/blob/master/tests/conftest.py Analyze his updates for ideas or modifications that would integrate well with this tool. Some...
Logs are the toughest part about this plugin's design. We want to abstract away some of the very complex things under the hood in terms of handling logs, but we...
Default starting balances is 100 ETH (IIRC), add an optional flag (similar to #4) which allows setting this. Up for debate if this should be across all accounts, or to...