tests/mockblackbox.py
author timeless <timeless@mozdev.org>
Mon, 21 Mar 2016 04:01:29 +0000
changeset 28606 8cc51c5a9365
parent 28028 ac49ecb2a897
child 28943 417380aa5bbe
permissions -rw-r--r--
tests: include progress for test-remove

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