Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Fix formatting #346

Merged
merged 2 commits into from
Feb 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion src/nile/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def get_all_contracts(ext=None, directory=None):
ext = ".cairo"

files = list()
for (dirpath, _, filenames) in os.walk(
for dirpath, _, filenames in os.walk(
directory if directory else CONTRACTS_DIRECTORY
):
files += [
Expand Down
1 change: 0 additions & 1 deletion tests/commands/test_deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ async def test_deploy_contract(
overriding_path,
watch_mode,
):

logging.getLogger().setLevel(logging.INFO)

account = await MockAccount("TEST_KEY", NETWORK)
Expand Down
3 changes: 0 additions & 3 deletions tests/core/types/test_transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,6 @@ async def test_deploy_account_transaction_init_defaults(mock_get_class_hash):
async def test_transaction_execute(
mock_status, mock_call_args, mock_get_tx_hash, watch_mode
):

account = await MockAccount(KEY, NETWORK)
mock_sig_r, mock_sig_s = account.signer.sign(TX_HASH)
with patch("nile.core.types.transactions.execute_call") as mock_execute_call:
Expand Down Expand Up @@ -315,7 +314,6 @@ async def test_transaction_execute(
return_value={"param": "value"},
)
async def test_transaction_estimate_fee(mock_call_args, mock_get_tx_hash, caplog):

account = await MockAccount(KEY, NETWORK)
mock_sig_r, mock_sig_s = account.signer.sign(TX_HASH)
exp_output = 1000
Expand Down Expand Up @@ -356,7 +354,6 @@ async def test_transaction_estimate_fee(mock_call_args, mock_get_tx_hash, caplog
return_value={"param": "value"},
)
async def test_transaction_simulate(mock_call_args, mock_get_tx_hash, caplog):

account = await MockAccount(KEY, NETWORK)
mock_sig_r, mock_sig_s = account.signer.sign(TX_HASH)
with patch("nile.core.types.transactions.execute_call") as mock_execute_call:
Expand Down