mirror of
https://github.com/ihabunek/toot.git
synced 2025-06-30 22:18:36 -04:00
Fix tests
This commit is contained in:
parent
92810459c7
commit
096664b9dc
@ -528,14 +528,14 @@ def test_notifications(mock_get, capsys):
|
|||||||
"",
|
"",
|
||||||
"ID 111111111111111111 ",
|
"ID 111111111111111111 ",
|
||||||
"─" * width,
|
"─" * 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",
|
"Zappa Fan @fan123@zappa-fans.social 1983-11-04 15:53",
|
||||||
"",
|
"",
|
||||||
"The Black Page, a masterpiece",
|
"The Black Page, a masterpiece",
|
||||||
"",
|
"",
|
||||||
"ID 1234 ",
|
"ID 1234 ",
|
||||||
"─" * width,
|
"─" * 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",
|
"Zappa Fan @fan123@zappa-fans.social 1983-11-04 15:53",
|
||||||
"",
|
"",
|
||||||
"The Black Page, a masterpiece",
|
"The Black Page, a masterpiece",
|
||||||
@ -545,6 +545,7 @@ def test_notifications(mock_get, capsys):
|
|||||||
"",
|
"",
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
@mock.patch('toot.http.get')
|
@mock.patch('toot.http.get')
|
||||||
def test_notifications_empty(mock_get, capsys):
|
def test_notifications_empty(mock_get, capsys):
|
||||||
mock_get.return_value = MockResponse([])
|
mock_get.return_value = MockResponse([])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user