view tests/mockblackbox.py @ 28631:c2e4e59aaea6

tests: fix failure of test-convert-mtn.t This is follow up for 3f9e25a42e69, which overlooked this test.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Sat, 26 Mar 2016 10:53:31 +0900
parents ac49ecb2a897
children 417380aa5bbe
line wrap: on
line source

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