Skip to content

Commit 687cf4a

Browse files
committed
fix test
1 parent dd2746b commit 687cf4a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

multiversx_sdk_cli/tests/test_cli_default_wallet.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ def test_empty_address_config(capsys: Any, monkeypatch: Any, tmp_path: Path):
5858

5959

6060
def test_without_address_config(capsys: Any, monkeypatch: Any, tmp_path: Path):
61-
test_file = tmp_path / "addresses.mxpy.json"
61+
# Ensure the address config file does not exist; if the actual name is used, when running the tests locally, it will fail with a different error message
62+
test_file = tmp_path / "test-addresses.mxpy.json"
6263
assert not test_file.exists()
6364

6465
import multiversx_sdk_cli.address_config
@@ -106,7 +107,7 @@ def test_without_address_config(capsys: Any, monkeypatch: Any, tmp_path: Path):
106107
)
107108
assert return_code
108109
out = _read_stdout(capsys)
109-
assert "Alias is not known: invalidAlias." in out
110+
assert "The address config file was not found." in out
110111

111112

112113
def test_incomplete_address_config(capsys: Any, monkeypatch: Any, tmp_path: Path):

0 commit comments

Comments
 (0)