##// END OF EJS Templates
tests: move mock blackbox extension into own file...
Gregory Szorc -
r24705:0ead0a07 default
parent child Browse files
Show More
@@ -0,0 +1,11 b''
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
@@ -1,20 +1,8 b''
1 1 setup
2 $ cat > mock.py <<EOF
3 > from mercurial import util
4 >
5 > def makedate():
6 > return 0, 0
7 > def getuser():
8 > return 'bob'
9 > # mock the date and user apis so the output is always the same
10 > def uisetup(ui):
11 > util.makedate = makedate
12 > util.getuser = getuser
13 > EOF
14 2 $ cat >> $HGRCPATH <<EOF
15 3 > [extensions]
16 4 > blackbox=
17 > mock=`pwd`/mock.py
5 > mock=$TESTDIR/mockblackbox.py
18 6 > mq=
19 7 > EOF
20 8 $ hg init blackboxtest
General Comments 0
You need to be logged in to leave comments. Login now