@pytest.fixture
def empty_history(webpage):
 hist = webpage.history()
 assert (hist.count() == 0)
 return hist

@ pytest . fixture def empty_history ( webpage ) : hist = webpage . history ( ) assert ( hist . count ( ) == 0 ) return hist
fixture providing an empty qwebhistory .