diff MoinMoin/script/migration/_tests/test_conv160_wiki.py @ 2610:ffe8c2d9a4ba

1.6 converter: only convert current rev of a page, added commented failing test cases
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 06 Aug 2007 01:40:09 +0200
parents 7aac9e2ecb3a
children 7ed38f2af242 82b0e4625f90
line wrap: on
line diff
--- a/MoinMoin/script/migration/_tests/test_conv160_wiki.py	Sun Aug 05 23:05:13 2007 +0200
+++ b/MoinMoin/script/migration/_tests/test_conv160_wiki.py	Mon Aug 06 01:40:09 2007 +0200
@@ -5,7 +5,6 @@
     TODO:
     * add some ../some_page test
     * add some /some_page test
-    * add more quote_triggers
     * fix parser/converter anchor link handling
     * emit a warning if we find some page name that was renamed as a macro argument?
     * shall we support camelcase renaming?
@@ -16,21 +15,6 @@
     * converter does not touch macro arguments, they will have to get handled
       manually
 
-Remaining problems:
-
- [wiki:/RecommendPage]
- [wiki:/farms farms]
-
- [wiki:MacroMarket/EmbedObject EO]
- [wiki:SeaPig/BrianDorsey]            ambiguity!!! can be resolved with some interwiki map lookup
-                                      and transformed to wiki:SeaPig:BrianDorsey if SeaPig is in 
-                                      interwiki map, but no page SeaPig exists.
-
- [:MeatBall:CleanLinking meatball-wiki: clean linking]
- [:Infrastructure:Infrastructure] optimize to ["Infrastructure"]
- [attachment:My%20Attachment.jpg:it works]
- [wiki:LinuxWiki: LinuxWiki.de] 
-
     @copyright: 2007 MoinMoin:ThomasWaldmann
     @license: GNU GPL, see COPYING for details.
 """
@@ -52,6 +36,20 @@
         # FAILS ('RenameThis', rename_some_page, 'ThisRenamed'),
         # NEEDED? ('!RenameThis', {}, '!RenameThis'), # not a link
 
+        # FAILING tests:
+        #('[wiki:/OtherPage]', rename_some_page, '[wiki:/OtherPage]'),
+        #('[wiki:/OtherPage other page]', rename_some_page, '[wiki:/OtherPage other page]'),
+        # ('[:Something:Something]', {}, '["Something"]'),
+        #('[attachment:My%20Attachment.jpg:it works]', {}, '[attachment:"My Attachment.jpg" it works]'),
+        #('[wiki:LinuxWiki: LinuxWiki.de]', {}, '[wiki:LinuxWiki: LinuxWiki.de]'),
+        #('[:MeatBall:CleanLinking meatball-wiki: clean linking]', {}, '[:MeatBall:CleanLinking meatball-wiki: clean linking]'),
+
+        # ambiguity!!! can be resolved with some interwiki map lookup
+        # and transformed to wiki:SeaPig:BrianDorsey if SeaPig is in 
+        # interwiki map, but no page SeaPig exists.
+        #('[wiki:MacroMarket/EmbedObject EO]', {}, '["MacroMarket/EmbedObject" EO]'),
+        ('[wiki:SeaPig/BrianDorsey]', {}, '[wiki:SeaPig:BrianDorsey]'),
+
         # "nothing changed" checks
         ('', {}, ''),
         ('MoinMaster:CamelCase', {}, 'MoinMaster:CamelCase'),