mockblackbox.py
17 lines
| 332 B
| text/x-python
|
PythonLexer
/ tests / mockblackbox.py
Robert Stanca
|
r28943 | from __future__ import absolute_import | ||
from mercurial import ( | ||||
util, | ||||
) | ||||
Gregory Szorc
|
r24705 | |||
def makedate(): | ||||
return 0, 0 | ||||
def getuser(): | ||||
return 'bob' | ||||
timeless
|
r28028 | def getpid(): | ||
return 5000 | ||||
Gregory Szorc
|
r24705 | |||
# mock the date and user apis so the output is always the same | ||||
def uisetup(ui): | ||||
util.makedate = makedate | ||||
util.getuser = getuser | ||||
timeless
|
r28028 | util.getpid = getpid | ||