changeset 442:6a9e9e4d6b29

tests: Update URL endpoints in tests.
author Ludovic Chabant <ludovic@chabant.com>
date Fri, 29 Dec 2017 23:16:46 -0800
parents 9d81c838f41a
children e117060eaa71
files tests/test_page.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test_page.py	Fri Dec 29 16:51:53 2017 -0800
+++ b/tests/test_page.py	Fri Dec 29 23:16:46 2017 -0800
@@ -86,17 +86,17 @@
 
     def testGenericUrl(self):
         wiki = self._getWikiFromStructure({
-            '/foo.txt': "URL: [[url:/blah/boo/raw.txt]]"
+            '/foo.txt': "URL: [[file:/blah/boo/raw.txt]]"
             })
         foo = wiki.getPage('/foo')
         self.assertEqual("URL: /files/blah/boo/raw.txt", foo.getFormattedText())
 
     def testImageUrl(self):
         wiki = self._getWikiFromStructure({
-            '/foo.txt': "URL: [[blah|asset:/blah/boo/image.png]]"
+            '/foo.txt': "URL: [[blah|image:/blah/boo/image.png]]"
             })
         foo = wiki.getPage('/foo')
-        self.assertEqual("URL: <img class=\"wiki-asset\" src=\"/files/blah/boo/image.png\" alt=\"blah\"></img>", foo.getFormattedText())
+        self.assertEqual("URL: <img class=\"wiki-image\" src=\"/files/blah/boo/image.png\" alt=\"blah\"></img>", foo.getFormattedText())
 
     def testUrlTemplateFunctions(self):
         wiki =self._getWikiFromStructure({