Last active
September 16, 2020 06:32
-
-
Save iamdefinitelyahuman/450a9b228244ad5578e697f12fe7b26c to your computer and use it in GitHub Desktop.
Brownie Pytest Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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