Skip to content

Commit 3bfc23c

Browse files
committed
Updates some tests to use stderr
1 parent 4b95848 commit 3bfc23c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def test_ping(runner):
7575
def test_create_index_neither_name_nor_source_passed(runner):
7676
result = runner.invoke(main, ["create"])
7777
assert result.exit_code == EXIT_CODES["invalid_command"]
78-
assert "Must provide either a name or source for the new index." in result.stdout
78+
assert "Must provide either a name or source for the new index." in result.stderr
7979

8080

8181
def test_create_index_name_and_source_passed(runner):
@@ -86,7 +86,7 @@ def test_create_index_name_and_source_passed(runner):
8686
assert result.exit_code == EXIT_CODES["invalid_command"]
8787
assert (
8888
"Only one of --index and --source options is allowed, not both."
89-
in escape_ansi(result.stdout)
89+
in escape_ansi(result.stderr)
9090
)
9191

9292

0 commit comments

Comments
 (0)