Debian Codegraph @

tests/mockblackbox.py

raw
1 from mercurial.utils import procutil
2
3
4 # XXX: we should probably offer a devel option to do this in blackbox directly
5 def getuser():
6 return b'bob'
7
8
9 def getpid():
10 return 5000
11
12
13 # mock the date and user apis so the output is always the same
14 def uisetup(ui):
15 procutil.getuser = getuser
16 procutil.getpid = getpid