Skip to content

Commit cbc0928

Browse files
committed
fixed CI
1 parent 6a1b905 commit cbc0928

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/test_ci.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ def test_cli_version():
3131
timeout=30,
3232
)
3333
assert result.returncode == 0
34-
assert "pygetpapers" in result.stdout.lower()
34+
# Version output goes to stderr, not stdout
35+
assert "pygetpapers" in (result.stdout + result.stderr).lower()
3536

3637

3738
def test_cli_noexecute():
@@ -54,7 +55,8 @@ def test_cli_noexecute():
5455

5556
# Should complete without error (even if no results found)
5657
assert result.returncode in [0, 1] # 0 = success, 1 = no results found
57-
assert "Total" in result.stdout or "hits" in result.stdout.lower()
58+
# Output goes to stderr, not stdout
59+
assert "Total" in (result.stdout + result.stderr) or "hits" in (result.stdout + result.stderr).lower()
5860

5961

6062
def test_cli_syntax():

0 commit comments

Comments
 (0)