Esempio n. 1
0
def browser_commands():
    from roland.core import BrowserCommands
    commands = BrowserCommands()
    commands.roland = MagicMock()
    commands.webview = MagicMock()
    commands.entry_line = MagicMock()
    return commands
Esempio n. 2
0
def real_browser_commands():
    from roland.core import BrowserCommands, WebKit2
    commands = BrowserCommands()
    commands.webview = WebKit2.WebView()
    return commands