tests/mockblackbox.py
author Gregory Szorc <gregory.szorc@gmail.com>
Sat, 08 Aug 2015 19:09:09 -0700
changeset 25945 147bd9e238a1
parent 24705 0ead0a07ed9c
child 28028 ac49ecb2a897
permissions -rw-r--r--
error: use absolute_import

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