tests/mockblackbox.py
author Anton Shestakov <av6@dwimlabs.net>
Wed, 21 Sep 2016 20:19:35 +0800
changeset 29983 c6e829347561
parent 28943 417380aa5bbe
child 32412 043948c84647
permissions -rw-r--r--
monoblue: tweak branch table's last row's cell colspan on summary page This table only has 3 columns, so max sensible colspan is 3.

from __future__ import absolute_import
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