summaryrefslogtreecommitdiff
path: root/test/test_text_buffer.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-03-26 12:42:03 +0100
committermathieui <mathieui@mathieui.net>2021-04-02 17:44:36 +0200
commitef772d8b2aaba697549b63173de9e0291691d11c (patch)
tree38b9aa63f667ad4bc784f26a4f2855daf2d39904 /test/test_text_buffer.py
parent84afe4938dfa40aff388e48c1c0b159469656839 (diff)
downloadpoezio-ef772d8b2aaba697549b63173de9e0291691d11c.tar.gz
poezio-ef772d8b2aaba697549b63173de9e0291691d11c.tar.bz2
poezio-ef772d8b2aaba697549b63173de9e0291691d11c.tar.xz
poezio-ef772d8b2aaba697549b63173de9e0291691d11c.zip
fix: failing tests
Diffstat (limited to 'test/test_text_buffer.py')
-rw-r--r--test/test_text_buffer.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_text_buffer.py b/test/test_text_buffer.py
index 65c6d9bf..3daf54d4 100644
--- a/test/test_text_buffer.py
+++ b/test/test_text_buffer.py
@@ -20,6 +20,7 @@ from poezio.ui.types import (
def buf2048():
return TextBuffer(2048)
+
@fixture(scope='function')
def msgs_nojoin():
msg1 = Message('1', 'q')
@@ -35,6 +36,7 @@ def msgs_noleave():
msg4 = Message('4', 'f')
return [join, msg3, msg4]
+
@fixture(scope='function')
def msgs_doublejoin():
join = MucOwnJoinMessage('join')
@@ -43,6 +45,7 @@ def msgs_doublejoin():
join2 = MucOwnJoinMessage('join')
return [join, msg1, msg2, join2]
+
def test_last_message(buf2048):
msg = BaseMessage('toto')
buf2048.add_message(BaseMessage('titi'))
@@ -195,4 +198,3 @@ def test_add_history_empty(buf2048):
buf2048.add_message(msg1)
buf2048.add_history_messages([msg2, msg3, msg4])
assert buf2048.messages == [msg2, msg3, msg4, msg1]
-