tests/mockblackbox.py
author Matt Mackall <mpm@selenic.com>
Thu, 25 Jun 2015 17:41:40 -0500
changeset 25827 0fdf2c304019
parent 24705 0ead0a07ed9c
child 28028 ac49ecb2a897
permissions -rw-r--r--
mq: tweak config reading to make check-config happy The not-really-a-bool handling here upsets the type checker.

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