mirror of
https://github.com/ihabunek/toot.git
synced 2024-12-04 14:46:33 -05:00
Check full output in test_timeline
We're going to update this test in the next commit and having complete output checked (including padding, column/row separations) will help.
This commit is contained in:
parent
02c392230e
commit
9d6cd87202
@ -136,12 +136,17 @@ def test_timeline(mock_get, monkeypatch, capsys):
|
|||||||
mock_get.assert_called_once_with(app, user, '/api/v1/timelines/home?limit=10', None)
|
mock_get.assert_called_once_with(app, user, '/api/v1/timelines/home?limit=10', None)
|
||||||
|
|
||||||
out, err = capsys.readouterr()
|
out, err = capsys.readouterr()
|
||||||
assert "The computer can't tell you the emotional story." in out
|
|
||||||
assert "but what's missing is the eyebrows." in out
|
expected = (
|
||||||
assert "Frank Zappa" in out
|
"───────────────────────────────┬────────────────────────────────────────────────────────────────────────────────────────\n"
|
||||||
assert "@fz" in out
|
"Frank Zappa │ The computer can't tell you the emotional story. It can give you the exact\n"
|
||||||
assert "id: 111111111111111111" in out
|
"@fz │ mathematical design, but what's missing is the eyebrows.\n"
|
||||||
assert "[RE]" not in out
|
"2017-04-12 15:53 │ \n"
|
||||||
|
"id: 111111111111111111 │ \n"
|
||||||
|
"───────────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────\n"
|
||||||
|
)
|
||||||
|
assert out == expected
|
||||||
|
assert err == ""
|
||||||
|
|
||||||
|
|
||||||
@mock.patch('toot.http.get')
|
@mock.patch('toot.http.get')
|
||||||
|
Loading…
Reference in New Issue
Block a user