For tests:
-
Add Infura Id to environmental variables. https://eth-brownie.readthedocs.io/en/stable/network-management.html#using-infura
-
Add ETHERSCAN_TOKEN to environmental variables.
-
Run below:
$ cd solidity
$ brownie test tests/mainnet-fork-tests --network mainnet-fork -s