tests/mockblackbox.py
author Durham Goode <durham@fb.com>
Tue, 05 Jan 2016 17:08:14 -0800
changeset 27643 62ce86fcfd06
parent 24705 0ead0a07ed9c
child 28028 ac49ecb2a897
permissions -rw-r--r--
verify: move checkentry() to be a class function This is part of making verify more modular so extensions can hook into it.

from mercurial import util

def makedate():
    return 0, 0
def getuser():
    return 'bob'

# mock the date and user apis so the output is always the same
def uisetup(ui):
    util.makedate = makedate
    util.getuser = getuser