Mercurial > hg
comparison tests/mockblackbox.py @ 24705:0ead0a07ed9c
tests: move mock blackbox extension into own file
Having all blackbox log testing in test-blackbox.t isn't scalable. Move
the mock blackbox extension into its own file so we can start to move
blackbox logging into other tests.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 13 Apr 2015 09:36:33 -0400 |
parents | |
children | ac49ecb2a897 |
comparison
equal
deleted
inserted
replaced
24704:03f92741487f | 24705:0ead0a07ed9c |
---|---|
1 from mercurial import util | |
2 | |
3 def makedate(): | |
4 return 0, 0 | |
5 def getuser(): | |
6 return 'bob' | |
7 | |
8 # mock the date and user apis so the output is always the same | |
9 def uisetup(ui): | |
10 util.makedate = makedate | |
11 util.getuser = getuser |