tests/mockblackbox.py
changeset 24705 0ead0a07ed9c
child 28028 ac49ecb2a897
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/mockblackbox.py	Mon Apr 13 09:36:33 2015 -0400
@@ -0,0 +1,11 @@
+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