@pytest.fixture
def history_obj():
 hist = PromptToolkitHistory(load_prev=False)
 hist.append('line10')
 return hist

@ pytest . fixture def history_obj ( ) : hist = PromptToolkitHistory ( load_prev = False ) hist . append ( 'line10' ) return hist
instatiate prompttoolkithistory and append a line string .