Commit 89a76876 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Test: Fix htmltextview test

parent ae48aba3
......@@ -8,6 +8,7 @@
from gajim.common import configpaths
from gajim.common import caps_cache
from gajim.common.helpers import AdditionalDataDict
from gajim.conversation_textview import ConversationTextview
from gajim.gui_interface import Interface
......@@ -15,6 +16,7 @@
caps_cache.capscache = MagicMock()
app.plugin_manager = MagicMock()
app.logger = MagicMock()
app.cert_store = MagicMock()
app.interface = Interface()
......@@ -204,7 +206,10 @@ def __init__(self):
def _print_xhtml(self):
for xhtml in XHTML:
self._textview.print_real_text(None, xhtml=xhtml)
additional_data = AdditionalDataDict()
additional_data.set_value('gajim', 'xhtml', xhtml)
self._textview.print_real_text(None, additional_data=additional_data)
win = TextviewWindow()
win.connect("destroy", Gtk.main_quit)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment