Add S3-gate testcase (#4)

* Add S3-gate testcase
This commit is contained in:
anatoly-bogatyrev 2020-12-11 14:35:02 +03:00 committed by GitHub
parent 14b780257c
commit a20ec58614
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 320 additions and 173 deletions

View file

@ -37,6 +37,24 @@ def init_wallet():
logger.info(f"Command completed with output: {out}")
return filename
@keyword('Generate wallet from WIF')
def generate_wallet_from_wif(wallet: str, wif: str):
cmd = ( f"{NEOGO_CLI_PREFIX} wallet import --wallet {wallet} --wif {wif}" )
logger.info(f"Executing command: {cmd}")
p = pexpect.spawn(cmd)
p.expect(".*")
p.sendline('\n')
p.sendline('\n')
p.sendline('\n')
p.wait()
out = p.read()
logger.info(f"Command completed with output: {out}")
@keyword('Generate wallet')
def generate_wallet(wallet: str):
cmd = ( f"{NEOGO_CLI_PREFIX} wallet create -w {wallet}" )