Code Review
/
qtip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
2c04275
)
Fix unit test 'test_cli_error' always 'pass' problem.
31/18931/1
author
zhifeng.jiang
<jiang.zhifeng@zte.com.cn>
Thu, 18 Aug 2016 08:35:43 +0000
(16:35 +0800)
committer
zhifeng.jiang
<jiang.zhifeng@zte.com.cn>
Thu, 18 Aug 2016 08:35:43 +0000
(16:35 +0800)
Change-Id: Iabb4ca83f4f4167471b57411f78520d284a38b3c
Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
tests/cli_test.py
patch
|
blob
|
history
diff --git
a/tests/cli_test.py
b/tests/cli_test.py
index
f12e8fe
..
bd31d98
100644
(file)
--- a/
tests/cli_test.py
+++ b/
tests/cli_test.py
@@
-16,5
+16,5
@@
class TestClass:
def test_cli_error(self, capfd, test_input, expected):
with pytest.raises(SystemExit):
cli(test_input)
-
resout, reserr = capfd.readouterr()
-
assert expected in resout
+ resout, reserr = capfd.readouterr()
+ assert expected in resout