Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Brownie example and description #3070

Merged
merged 7 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: brownie example usage
Signed-off-by: Mariusz Jasuwienas <mariusz.jasuwienas@arianelabs.com>
  • Loading branch information
arianejasuwienas committed Oct 4, 2024
commit 8081555d0630050eb602286712e97e6901cb9c60
4 changes: 2 additions & 2 deletions tools/brownie-example/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__pycache__
.history
.hypothesis/
.pytest_cache/
build/
reports/

15 changes: 8 additions & 7 deletions tools/brownie-example/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@

import pytest

# You can also run your tests in isolation mode. In order to do so you have to connect to the forked network of
# the Hedera chain you want to run this tests on (snapshot method will be used during tests)
#@pytest.fixture(scope="function", autouse=True)
#def isolate(fn_isolation):
# perform a chain rewind after completing each test, to ensure proper isolation
# https://eth-brownie.readthedocs.io/en/v1.10.3/tests-pytest-intro.html#isolation-fixtures
# You can run your tests in isolation mode by connecting to a forked network of the Hedera chain.
# This will enable the snapshot method during testing, ensuring that each test starts with a clean state.
# @pytest.fixture(scope="function", autouse=True)
# def isolate(fn_isolation):
# Rewinds the chain after each test to maintain proper isolation.
# More information can be found here:
# https://eth-brownie.readthedocs.io/en/v1.10.3/tests-pytest-intro.html#isolation-fixtures
# pass

# This setup will not be needed for forked networks, which pre-created accounts
# This setup is not required for forked networks with pre-funded accounts.
@pytest.fixture(scope="module", autouse=True)
def shared_setup(accounts):
accounts.load('bob')
Expand Down
Loading