tests/mockblackbox.py
author Pulkit Goyal <7895pulkit@gmail.com>
Sun, 06 Mar 2016 03:19:08 +0530
changeset 28476 e28dc6de38e7
parent 28028 ac49ecb2a897
child 28943 417380aa5bbe
permissions -rw-r--r--
debugshell: use absolute_import

from mercurial import util

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

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