1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-11-03 04:17:21 -05:00

Fix tests

This commit is contained in:
Ivan Habunek 2019-04-23 13:16:24 +02:00
parent 92810459c7
commit 096664b9dc
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95

View File

@ -528,14 +528,14 @@ def test_notifications(mock_get, capsys):
"",
"ID 111111111111111111 ",
"" * width,
"Zappa Old Fan @fan9@zappa-fans.social favourited your status",
"Terry Bozzio @terry@bozzio.social reblogged your status",
"Zappa Fan @fan123@zappa-fans.social 1983-11-04 15:53",
"",
"The Black Page, a masterpiece",
"",
"ID 1234 ",
"" * width,
"Terry Bozzio @terry@bozzio.social reblogged your status",
"Zappa Old Fan @fan9@zappa-fans.social favourited your status",
"Zappa Fan @fan123@zappa-fans.social 1983-11-04 15:53",
"",
"The Black Page, a masterpiece",
@ -545,6 +545,7 @@ def test_notifications(mock_get, capsys):
"",
])
@mock.patch('toot.http.get')
def test_notifications_empty(mock_get, capsys):
mock_get.return_value = MockResponse([])