tests/mockblackbox.py
author Gregory Szorc <gregory.szorc@gmail.com>
Mon, 13 Apr 2015 09:36:33 -0400
changeset 24705 0ead0a07ed9c
child 28028 ac49ecb2a897
permissions -rw-r--r--
tests: move mock blackbox extension into own file Having all blackbox log testing in test-blackbox.t isn't scalable. Move the mock blackbox extension into its own file so we can start to move blackbox logging into other tests.

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