Description
Cant run test by command 'py.test' because there's no underlay.tar in wiki directory.
Steps to reproduce
Just run tests for MoinMoin 1.8.3, 'py.test'
Component selection
- tests
Details
MoinMoin Version |
1.8.3 |
OS and Version |
any |
Python Version |
any |
Server Setup |
|
Server Details |
|
Language you are using the wiki in (set in the browser/UserPreferences) |
|
Workaround
- Correct maketestwiki.py: not trying to untar underlay.tar but copy directory underlay to tests/wiki/underlay; see my patch attachment,
Ilya Murav'jov, email: <muravev AT yandex NO Spam DOT ru>
1 --- moin-1.8.3/MoinMoin/_tests/maketestwiki.py 2009-05-25 00:06:49.000000000 +0400
2 +++ site/MoinMoin/_tests/maketestwiki.py 2009-05-27 12:08:15.000000000 +0400
3 @@ -31,12 +31,18 @@
4 (err.errno == 3 and os.name == 'nt')):
5 raise
6
7 +def copyDataFolder(folder):
8 + print 'copying ' + folder + ' ...'
9 + src = os.path.join(SHARE, folder)
10 + dst = os.path.join(WIKI, folder)
11 + shutil.copytree(src, dst)
12
13 def copyData():
14 - print 'copying data ...'
15 - src = os.path.join(SHARE, 'data')
16 - dst = os.path.join(WIKI, 'data')
17 - shutil.copytree(src, dst)
18 + #print 'copying data ...'
19 + #src = os.path.join(SHARE, 'data')
20 + #dst = os.path.join(WIKI, 'data')
21 + #shutil.copytree(src, dst)
22 + copyDataFolder('data')
23
24
25 def untarUnderlay():
26 @@ -58,7 +64,8 @@
27 return
28 removeTestWiki()
29 copyData()
30 - untarUnderlay()
31 + #untarUnderlay()
32 + copyDataFolder('underlay')
33
34 if __name__ == '__main__':
35 sys.path.insert(0, moinpath)
Discussion
The tests are mainly for developers (they use a repo checkout usually and that has the underlay.tar).
If you change it to just use the unpacked underlay directory (which we provide for convenience in our release archive), it would stop working for the developers.
Plan
- Priority:
- Assigned to:
Status: tests are for developers just download or clone the full development version from http://hg.moinmo.in