@pytest.fixture
def _history():
 history = InMemoryHistory()
 history.append(u'alpha beta gamma delta')
 history.append(u'one two three four')
 return history

@ pytest . fixture def _history ( ) : history = InMemoryHistory ( ) history . append ( u'alpha beta gamma delta' ) history . append ( u'one two three four' ) return history
prefilled history .