tests/mockblackbox.py
author Siddharth Agarwal <sid0@fb.com>
Wed, 16 Sep 2015 19:52:06 -0700
changeset 26291 1d33842c5b3e
parent 24705 0ead0a07ed9c
child 28028 ac49ecb2a897
permissions -rw-r--r--
lock: factor out lock testing into a separate function This is going to be needed for upcoming work with lock inheritance.

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