summaryrefslogtreecommitdiff
path: root/test/test_text_buffer.py
diff options
context:
space:
mode:
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]
-