Skip to content

Instantly share code, notes, and snippets.

@iamdefinitelyahuman
Last active September 16, 2020 06:32
Show Gist options
  • Save iamdefinitelyahuman/450a9b228244ad5578e697f12fe7b26c to your computer and use it in GitHub Desktop.
Save iamdefinitelyahuman/450a9b228244ad5578e697f12fe7b26c to your computer and use it in GitHub Desktop.
Brownie Pytest Example
import pytest
@pytest.fixture(scope="function", autouse=True)
def isolate(fn_isolation):
pass
@pytest.fixture(scope="module")
def token(Token, accounts):
t = accounts[0].deploy(Token, "Test Token", "TST", 18, "1000 ether")
yield t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment