@pytest.fixture
def keyparser():
 kp = basekeyparser.BaseKeyParser(0, supports_count=True, supports_chains=True)
 kp.execute = mock.Mock()
 (yield kp)
 assert (not kp._ambiguous_timer.isActive())

@ pytest . fixture def keyparser ( ) : kp = basekeyparser . BaseKeyParser ( 0 , supports_count = True , supports_chains = True ) kp . execute = mock . Mock ( ) ( yield kp ) assert ( not kp . _ambiguous_timer . isActive ( ) )
fixture providing a basekeyparser supporting count/chains .