changeset 881:1dbbcb8ee361 storage-ng

remove maketestwiki module, not used any more
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 26 Sep 2011 01:20:56 +0200
parents 92db819ad184
children 1c69c4be4171
files MoinMoin/_tests/maketestwiki.py MoinMoin/conftest.py
diffstat 2 files changed, 1 insertions(+), 57 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/_tests/maketestwiki.py	Mon Sep 26 01:17:59 2011 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,56 +0,0 @@
-# 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()
-
--- a/MoinMoin/conftest.py	Mon Sep 26 01:17:59 2011 +0200
+++ b/MoinMoin/conftest.py	Mon Sep 26 01:20:56 2011 +0200
@@ -39,7 +39,7 @@
 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