1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-06-16 06:15:25 +00:00

Fix tests broken by colors patch

This commit is contained in:
Ivan Habunek 2019-09-08 15:08:24 +02:00
parent 5343319333
commit 65eb1d0e10
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95

View File

@ -192,7 +192,7 @@ def test_timeline_with_re(mock_get, monkeypatch, capsys):
"exact mathematical design, but\nwhat's missing is the eyebrows." in out)
assert "111111111111111111" in lines[-3]
assert "↻ Reblogged \x1b[34m@jc\x1b[0m" in lines[-3]
assert "↻ Reblogged @jc" in lines[-3]
assert err == ""
@ -336,10 +336,10 @@ def test_search(mock_get, capsys):
})
out, err = capsys.readouterr()
assert "Hashtags:\n\033[32m#foo\033[0m, \033[32m#bar\033[0m, \033[32m#baz\033[0m" in out
assert "Hashtags:\n#foo, #bar, #baz" in out
assert "Accounts:" in out
assert "\033[32m@thequeen\033[0m Freddy Mercury" in out
assert "\033[32m@thequeen@other.instance\033[0m Mercury Freddy" in out
assert "@thequeen Freddy Mercury" in out
assert "@thequeen@other.instance Mercury Freddy" in out
@mock.patch('toot.http.post')