Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def mockevent(): return hunter.Event(sys._getframe(0), 'line', None, hunter.Tracer())
Hunter is a flexible code tracing toolkit.