tests/mockblackbox.py
author timeless <timeless@mozdev.org>
Mon, 14 Dec 2015 22:21:30 +0000
changeset 27350 890273343170
parent 24705 0ead0a07ed9c
child 28028 ac49ecb2a897
permissions -rw-r--r--
tests: histedit-helpers fixbundle should not complain about no input

from mercurial import util

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

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