Commits

Olemis Lang committed 0236e63

GViz providers : Use WikiAdmin to load default wiki pages in data source wiki events test cases ... (failures=7, errors=78)

Comments (0)

Files changed (1)

trac-dev/gviz/tracgviz/testing/test_gviz.py

       ...               resource_listdir('trac.wiki', 'default-pages') \
       ...               if not page.startswith('Wiki')]
       >>> pages_dir = resource_filename('trac.wiki', 'default-pages')
-      >>> from trac.admin.console import TracAdmin
-      >>> cmd = TracAdmin()
-      >>> cmd._do_wiki_load(pages_dir, cursor, ignore=ignore)
+      >>> from trac.wiki.admin import WikiAdmin
+      >>> cmd = WikiAdmin(env)
+      >>> cmd.load_pages(pages_dir, ignore=ignore)
       Wiki... imported from ...
       Wiki... imported from ...
       Wiki... imported from ...
       Wiki... imported from ...
       Wiki... imported from ...
       
-      >>> cnx.commit()
-      
       # Everything Ok ?
       >>> from tracrpc.wiki import WikiRPC
       >>> sorted(WikiRPC(env).getAllPages(req))