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.common import caps_cache from gajim.conversation_textview import ConversationTextview from gajim.gui_interface import Interface caps_cache.capscache = MagicMock() app.plugin_manager = MagicMock() app.logger = MagicMock() app.interface = Interface() XHTML = [ '''
rexxnor: i nimes chum a...
''', '''
a:b Google
O MG , I'm greenwith 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
''', '''