tests/mockblackbox.py
author Durham Goode <durham@fb.com>
Tue, 05 Jan 2016 18:34:39 -0800
changeset 27646 8f43793382c6
parent 24705 0ead0a07ed9c
child 28028 ac49ecb2a897
permissions -rw-r--r--
verify: move manifest verification to its own function This makes verify more modular, making it easier for extensions to extend.

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