Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Commit f025f73

Browse files
committed
test to ensure count is on the last line of the output
1 parent ffb2383 commit f025f73

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/tests/test_integration.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,9 @@ def foo():
259259
out, err, code = env.invoke(args='--count')
260260
assert code == 1
261261
assert '2' in out
262+
# The error count should be in the last line of the output.
263+
# -2 since there is a newline at the end of the output.
264+
assert '2' == out.split('\n')[-2].strip()
262265

263266

264267
def test_select_cli(env):

0 commit comments

Comments
 (0)