tests/mockblackbox.py
author Pierre-Yves David <pierre-yves.david@fb.com>
Wed, 07 Oct 2015 00:50:53 -0700
changeset 26554 a6d51dcb1823
parent 24705 0ead0a07ed9c
child 28028 ac49ecb2a897
permissions -rw-r--r--
extract: move 'nodeid' assignment where it is parsed The is one setter and no consumer, we can move it there directly.

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