Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #10134 from EOSIO/cli_test_no_keosd
Browse files Browse the repository at this point in the history
add --no-auto-keosd to cli_test
  • Loading branch information
spoonincode authored Apr 28, 2021
2 parents b809f95 + fd9b693 commit 3492c3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/cli_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def cleos_help_test(args):
def cli11_bugfix_test():
"""Test that subcommand names can be used as option arguments"""
completed_process = subprocess.run(
['./programs/cleos/cleos', '-u', 'http://localhost:0/',
['./programs/cleos/cleos', '--no-auto-keosd', '-u', 'http://localhost:0/',
'push', 'action', 'accout', 'action', '["data"]', '-p', 'wallet'],
check=False,
stderr=subprocess.PIPE)
Expand All @@ -46,13 +46,13 @@ def cli11_optional_option_arg_test():
chain = 'cf057bbfb72640471fd910bcb67639c22df9f92470936cddc1ade0e2f2e7dc4f'
key = '5Jgfqh3svgBZvCAQkcnUX8sKmVUkaUekYDGqFakm52Ttkc5MBA4'

output = subprocess.check_output(['./programs/cleos/cleos', 'sign',
output = subprocess.check_output(['./programs/cleos/cleos', '--no-auto-keosd', 'sign',
'-c', chain, '-k', '{}'],
input=key.encode(),
stderr=subprocess.DEVNULL)
assert(b'signatures' in output)

output = subprocess.check_output(['./programs/cleos/cleos', 'sign',
output = subprocess.check_output(['./programs/cleos/cleos', '--no-auto-keosd', 'sign',
'-c', chain, '-k', key, '{}'])
assert(b'signatures' in output)

Expand Down

0 comments on commit 3492c3a

Please sign in to comment.