view tests/mockblackbox.py @ 28466:c7d45c5a8cea

repair: specify unit for ui.progress in rebuildfncache()
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 11 Mar 2016 20:44:40 +0800
parents ac49ecb2a897
children 417380aa5bbe
line wrap: on
line source

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