Mercurial > hg
view tests/mockblackbox.py @ 28107:88e309a0c133
hook: add tests for failing post- python hooks
I couldn't find any tests for this.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Fri, 12 Feb 2016 11:42:18 -0800 |
parents | ac49ecb2a897 |
children | 417380aa5bbe |
line wrap: on
line source
from mercurial import util def makedate(): return 0, 0 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.makedate = makedate util.getuser = getuser util.getpid = getpid