Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaiton committed Jun 9, 2024
1 parent 220dc76 commit 8f5518c
Show file tree
Hide file tree
Showing 18 changed files with 2,366 additions and 355 deletions.
10 changes: 5 additions & 5 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def local_chain() -> Iterator[str]:

@pytest.fixture(scope="session")
def w3_init(local_chain: str) -> Web3:
"""gets a Web3 instance connected to the local chain.
"""Get a Web3 instance connected to the local chain.
Parameters
----------
Expand All @@ -102,7 +102,7 @@ def w3_init(local_chain: str) -> Web3:

@pytest.fixture(scope="function")
def w3(w3_init: Web3) -> Iterator[Web3]:
"""resets the anvil instance at the function level so each test gets a fresh chain.
"""Reset the anvil instance at the function level so each test gets a fresh chain.
Parameters
----------
Expand Down Expand Up @@ -155,9 +155,9 @@ def initialize_web3_with_http_provider(

@pytest.fixture(scope="class")
def process_contracts(request):
"""Generates abis for all contracts and pypechain types from those abis."""
"""Generate ABIs for all contracts and pypechain types from those abis."""

# don't regenerate files in CI, it can cause things to break in weird ways.
# Don't regenerate files in CI, it can cause things to break in weird ways.
if os.environ.get("IN_CI"):
return

Expand Down Expand Up @@ -189,5 +189,5 @@ def process_contracts(request):
with open(output_file, "w", encoding="utf-8") as file:
json.dump(data, file, ensure_ascii=False, indent=2)

# # Run the pypechain module after processing all contracts
# Run the pypechain module after processing all contracts
pypechain(f"{test_dir}/abis", f"{test_dir}/types")
Loading

0 comments on commit 8f5518c

Please sign in to comment.