Thomas Waldmann avatar Thomas Waldmann committed 1dbbcb8

remove maketestwiki module, not used any more

Comments (0)

Files changed (2)

MoinMoin/_tests/maketestwiki.py

-# Copyright: 2005 by Thomas Waldmann
-# License: GNU GPL v2 (or any later version), see LICENSE.txt for details.
-
-"""
-MoinMoin - make a test wiki
-
-Usage:
-
-    maketestwiki.py
-"""
-
-
-import os, sys, shutil, errno
-import tarfile
-
-filename = globals().get("__file__") or sys.argv[0]
-moinpath = os.path.abspath(os.path.join(os.path.dirname(filename), os.pardir, os.pardir))
-
-WIKI = os.path.abspath(os.path.join(moinpath, 'tests', 'wiki'))
-SHARE = os.path.abspath(os.path.join(moinpath, 'wiki'))
-
-
-def removeTestWiki():
-    print 'removing old wiki ...'
-    dir = 'data'
-    try:
-        shutil.rmtree(os.path.join(WIKI, dir))
-    except OSError as err:
-        if not (err.errno == errno.ENOENT or
-                (err.errno == 3 and os.name == 'nt')):
-            raise
-
-
-def copyData():
-    print 'copying data ...'
-    src = os.path.join(SHARE, 'data')
-    dst = os.path.join(WIKI, 'data')
-    shutil.copytree(src, dst)
-
-
-def run(skip_if_existing=False):
-    try:
-        os.makedirs(WIKI)
-    except OSError as e:
-        if e.errno != errno.EEXIST:
-            raise
-
-    if skip_if_existing and os.path.exists(os.path.join(WIKI, 'data')):
-        return
-    removeTestWiki()
-    copyData()
-
-if __name__ == '__main__':
-    sys.path.insert(0, moinpath)
-    run()
-

MoinMoin/conftest.py

 MoinMoin.log.load_config(config_file)
 
 from MoinMoin.app import create_app_ext, destroy_app, before_wiki, teardown_wiki
-from MoinMoin._tests import maketestwiki, wikiconfig
+from MoinMoin._tests import wikiconfig
 from MoinMoin.storage import create_simple_mapping
 from flask import g as flaskg
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.