We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a1b905 commit cbc0928Copy full SHA for cbc0928
1 file changed
tests/test_ci.py
@@ -31,7 +31,8 @@ def test_cli_version():
31
timeout=30,
32
)
33
assert result.returncode == 0
34
- assert "pygetpapers" in result.stdout.lower()
+ # Version output goes to stderr, not stdout
35
+ assert "pygetpapers" in (result.stdout + result.stderr).lower()
36
37
38
def test_cli_noexecute():
@@ -54,7 +55,8 @@ def test_cli_noexecute():
54
55
56
# Should complete without error (even if no results found)
57
assert result.returncode in [0, 1] # 0 = success, 1 = no results found
- 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()
60
61
62
def test_cli_syntax():
0 commit comments