mockblackbox.py
11 lines
| 229 B
| text/x-python
|
PythonLexer
/ tests / mockblackbox.py
Gregory Szorc
|
r24705 | 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 | ||||