tests/mockblackbox.py
author Matt Mackall <mpm@selenic.com>
Wed, 09 Mar 2016 10:47:33 -0500
changeset 28866 02be5fc18c0c
parent 28028 ac49ecb2a897
child 28943 417380aa5bbe
permissions -rw-r--r--
import: document --exact behavior in more detail

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