tests/mockblackbox.py
author Anton Shestakov <av6@dwimlabs.net>
Fri, 11 Mar 2016 22:29:20 +0800
changeset 28468 0d6b3630b9a3
parent 28028 ac49ecb2a897
child 28943 417380aa5bbe
permissions -rw-r--r--
similar: specify unit for ui.progress when operating on files

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