tests/mockblackbox.py
author Boris Feld <boris.feld@octobus.net>
Tue, 01 Aug 2017 17:39:28 +0200
changeset 33694 6f4bc9688ca9
parent 32450 043948c84647
child 36143 f49c3ee5b02f
permissions -rw-r--r--
evolution: rename trouble(s) to instability Rename trouble(s) to instability in all external user-facing output. Only update user-facing output for the moment, variables names, templates keyword and potentially configuration would be done in later series. The renaming is done according to https://www.mercurial-scm.org/wiki/CEDVocabulary. Differential Revision: https://phab.mercurial-scm.org/D213

from __future__ import absolute_import
from mercurial import (
    util,
)

# XXX: we should probably offer a devel option to do this in blackbox directly
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.getuser = getuser
    util.getpid = getpid