Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
popenta committed Jul 20, 2023
1 parent ec0d44c commit d9527b4
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions multiversx_sdk_cli/tests/test_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ def test_get_account():
"get",
"--address",
"erd1qyu5wthldzr8wx5c9ucg8kjagg0jfs53s8nr3zpz3hypefsdd8ssycr6th",
"--proxy",
"https://testnet-api.multiversx.com"
]
)
if not result:
Expand Down Expand Up @@ -81,7 +83,14 @@ def test_query_contract():


def test_get_num_shards():
result = main(["network", "num-shards"])
result = main(
[
"network",
"num-shards",
"--proxy",
"https://testnet-api.multiversx.com"
]
)

if not result:
assert True
Expand All @@ -90,7 +99,16 @@ def test_get_num_shards():


def test_get_last_block_nonce():
result = main(["network", "block-nonce", "--shard", "4294967295"])
result = main(
[
"network",
"block-nonce",
"--shard",
"4294967295",
"--proxy",
"https://testnet-api.multiversx.com"
]
)

if not result:
assert True
Expand All @@ -99,7 +117,14 @@ def test_get_last_block_nonce():


def test_get_chain_id():
result = main(["network", "chain"])
result = main(
[
"network",
"chain",
"--proxy",
"https://testnet-api.multiversx.com"
]
)

if not result:
assert True
Expand Down

0 comments on commit d9527b4

Please sign in to comment.