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

Commit

Permalink
Predeploy 0 accounts as default in tests (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan-SL authored Jul 6, 2022
1 parent 02a6ef9 commit 9e170e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ def run_devnet_in_background(*args, stderr=None, stdout=None):
Accepts extra args to pass to `starknet-devnet` command.
Returns the process handle.
"""
# If accounts argument is not passed 0 is used as default
if "--accounts" not in args:
args = [*args, "--accounts", "0"]

command = ["poetry", "run", "starknet-devnet", "--host", HOST, "--port", PORT, *args]
# pylint: disable=consider-using-with
proc = subprocess.Popen(command, close_fds=True, stderr=stderr, stdout=stdout)
Expand Down

0 comments on commit 9e170e1

Please sign in to comment.