# HG changeset patch # User Ludovic Chabant # Date 1514618206 28800 # Node ID 6a9e9e4d6b294e9280791480da527543aa3f784a # Parent 9d81c838f41a86f9884207e705a0d6f44a7d1406 tests: Update URL endpoints in tests. diff -r 9d81c838f41a -r 6a9e9e4d6b29 tests/test_page.py --- 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: \"blah\"", foo.getFormattedText()) + self.assertEqual("URL: \"blah\"", foo.getFormattedText()) def testUrlTemplateFunctions(self): wiki =self._getWikiFromStructure({