from unittest.mock import MagicMock import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk from gajim.common import app from gajim.common import configpaths configpaths.init() from gajim import gui gui.init('gtk') from gajim.common.helpers import AdditionalDataDict from gajim.conversation_textview import ConversationTextview from gajim.gui_interface import Interface app.settings = MagicMock() app.plugin_manager = MagicMock() app.logger = MagicMock() app.cert_store = MagicMock() app.storage = MagicMock() app.interface = Interface() XHTML = [ '''
Look here Google
O MG , I'm green with envy!
''', '''As Emerson said in his essay Self-Reliance:
"A foolish consistency is the hobgoblin of little minds."
''', '''Hey, are you licensed to Jabber?
''', '''
def fac(n): def faciter(n,acc): if n==0: return acc return faciter(n-1, acc*n) if n<0: raise ValueError('Must be non-negative') return faciter(n,1)''', '''
examples@example.org wrote:
this cite - bla bla bla, smile- :-) …
some text
#232/1
''', '''