tests/mockblackbox.py
author Augie Fackler <augie@google.com>
Sat, 19 Mar 2016 14:26:10 -0400
changeset 28596 9949950664cd
parent 28028 ac49ecb2a897
child 28943 417380aa5bbe
permissions -rw-r--r--
run-tests: add support for automatically bisecting test failures

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