tests/mockblackbox.py
author Pierre-Yves David <pierre-yves.david@fb.com>
Wed, 27 May 2015 11:37:11 -0700
changeset 25372 df723a2655e9
parent 24705 0ead0a07ed9c
child 28028 ac49ecb2a897
permissions -rw-r--r--
test: use both bundle formats in test-pull-http It is valuable to have both formats tested.

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