tests/mockblackbox.py
author Pierre-Yves David <pierre-yves.david@fb.com>
Tue, 06 Oct 2015 02:22:23 -0700
changeset 26559 dbd4392daedf
parent 24705 0ead0a07ed9c
child 28028 ac49ecb2a897
permissions -rw-r--r--
extract: parse 'branch' using the generic mechanism Parsing 'branch' is very simple and a good first test.

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