Skip to content

Commit d140150

Browse files
committed
fix tests
1 parent 8c600d6 commit d140150

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

multiversx_sdk_cli/tests/test_cli_default_wallet.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ def test_empty_address_config(capsys: Any, monkeypatch: Any, tmp_path: Path):
2222
"erd1spyavw0956vq68xj8y4tenjpq2wd5a9p2c6j8gsz7ztyrnpxrruqzu66jx",
2323
"--gas-limit",
2424
"50000",
25+
"--nonce",
26+
"0",
27+
"--chain",
28+
"D",
2529
]
2630
)
2731
out = _read_stdout(capsys)
@@ -41,6 +45,10 @@ def test_empty_address_config(capsys: Any, monkeypatch: Any, tmp_path: Path):
4145
"50000",
4246
"--sender",
4347
"invalidSender",
48+
"--nonce",
49+
"0",
50+
"--chain",
51+
"D",
4452
]
4553
)
4654
assert return_code
@@ -65,6 +73,10 @@ def test_without_address_config(capsys: Any, monkeypatch: Any, tmp_path: Path):
6573
"erd1spyavw0956vq68xj8y4tenjpq2wd5a9p2c6j8gsz7ztyrnpxrruqzu66jx",
6674
"--gas-limit",
6775
"50000",
76+
"--nonce",
77+
"0",
78+
"--chain",
79+
"D",
6880
]
6981
)
7082
assert return_code
@@ -84,6 +96,10 @@ def test_without_address_config(capsys: Any, monkeypatch: Any, tmp_path: Path):
8496
"50000",
8597
"--sender",
8698
"invalidAlias",
99+
"--nonce",
100+
"0",
101+
"--chain",
102+
"D",
87103
]
88104
)
89105
assert return_code
@@ -117,6 +133,10 @@ def test_incomplete_address_config(capsys: Any, monkeypatch: Any, tmp_path: Path
117133
"erd1spyavw0956vq68xj8y4tenjpq2wd5a9p2c6j8gsz7ztyrnpxrruqzu66jx",
118134
"--gas-limit",
119135
"50000",
136+
"--nonce",
137+
"0",
138+
"--chain",
139+
"D",
120140
]
121141
)
122142
assert return_code
@@ -136,6 +156,10 @@ def test_incomplete_address_config(capsys: Any, monkeypatch: Any, tmp_path: Path
136156
"50000",
137157
"--sender",
138158
"alice",
159+
"--nonce",
160+
"0",
161+
"--chain",
162+
"D",
139163
]
140164
)
141165
assert return_code
@@ -167,6 +191,10 @@ def test_incomplete_address_config(capsys: Any, monkeypatch: Any, tmp_path: Path
167191
"erd1spyavw0956vq68xj8y4tenjpq2wd5a9p2c6j8gsz7ztyrnpxrruqzu66jx",
168192
"--gas-limit",
169193
"50000",
194+
"--nonce",
195+
"0",
196+
"--chain",
197+
"D",
170198
]
171199
)
172200
assert return_code
@@ -186,6 +214,10 @@ def test_incomplete_address_config(capsys: Any, monkeypatch: Any, tmp_path: Path
186214
"50000",
187215
"--sender",
188216
"alice",
217+
"--nonce",
218+
"0",
219+
"--chain",
220+
"D",
189221
]
190222
)
191223
assert return_code
@@ -232,6 +264,10 @@ def test_incomplete_address_config(capsys: Any, monkeypatch: Any, tmp_path: Path
232264
"50000",
233265
"--sender",
234266
"alice",
267+
"--nonce",
268+
"0",
269+
"--chain",
270+
"D",
235271
]
236272
)
237273
assert return_code

0 commit comments

Comments
 (0)