view tests/mockblackbox.py @ 26297:ccdc2b23fdb8

debian: configuration so that cacerts is properly loaded This will be included in the mercurial-common package in a followup patch.
author Augie Fackler <augie@google.com>
date Tue, 22 Sep 2015 14:31:17 -0400
parents 0ead0a07ed9c
children ac49ecb2a897
line wrap: on
line source

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