@pytest.fixture
def web_history(stubs, web_history_stub):
 web_history_stub.history_dict = collections.OrderedDict([('http://qutebrowser.org', history.Entry(datetime(2015, 9, 5).timestamp(), QUrl('http://qutebrowser.org'), 'qutebrowser | qutebrowser')), ('https://python.org', history.Entry(datetime(2016, 3, 8).timestamp(), QUrl('https://python.org'), 'Welcome to Python.org')), ('https://github.com', history.Entry(datetime(2016, 5, 1).timestamp(), QUrl('https://github.com'), 'GitHub'))])
 return web_history_stub

@ pytest . fixture def web_history ( stubs , web_history_stub ) : web_history_stub . history_dict = collections . OrderedDict ( [ ( 'http://qutebrowser.org' , history . Entry ( datetime ( 2015 , 9 , 5 ) . timestamp ( ) , QUrl ( 'http://qutebrowser.org' ) , 'qutebrowser | qutebrowser' ) ) , ( 'https://python.org' , history . Entry ( datetime ( 2016 , 3 , 8 ) . timestamp ( ) , QUrl ( 'https://python.org' ) , 'Welcome to Python.org' ) ) , ( 'https://github.com' , history . Entry ( datetime ( 2016 , 5 , 1 ) . timestamp ( ) , QUrl ( 'https://github.com' ) , 'GitHub' ) ) ] ) return web_history_stub
pre-populate the web-history stub with some history entries .