forked from github/pelican
Fix Pelican rendering and unit tests on Windows.
* Fix {filename} links on Windows.
Otherwise '{filename}/foo/bar.jpg' doesn't work
* Clean up relative Posix path handling in contents.
* Use Posix paths in readers
* Environment for Popen must be strs, not unicodes.
* Ignore Git CRLF warnings.
* Replace CRLFs with LFs in inputs on Windows.
* Fix importer tests
* Fix test_contents
* Fix one last backslash in paginated output
* Skip the remaining failing locale tests on Windows.
* Document the use of forward slashes on Windows.
* Add some Fabric and ghp-import notes
This commit is contained in:
parent
a740f8aa88
commit
4c25610cd8
14 changed files with 104 additions and 52 deletions
|
|
@ -10,7 +10,7 @@ from pelican.tests.support import unittest, get_settings
|
|||
|
||||
from pelican.contents import Page, Article, Static, URLWrapper
|
||||
from pelican.settings import DEFAULT_CONFIG
|
||||
from pelican.utils import path_to_url, truncate_html_words, SafeDatetime
|
||||
from pelican.utils import path_to_url, truncate_html_words, SafeDatetime, posix_join
|
||||
from pelican.signals import content_object_init
|
||||
from jinja2.utils import generate_lorem_ipsum
|
||||
|
||||
|
|
@ -417,7 +417,7 @@ class TestStatic(unittest.TestCase):
|
|||
self.context = self.settings.copy()
|
||||
|
||||
self.static = Static(content=None, metadata={}, settings=self.settings,
|
||||
source_path=os.path.join('dir', 'foo.jpg'), context=self.context)
|
||||
source_path=posix_join('dir', 'foo.jpg'), context=self.context)
|
||||
|
||||
self.context['filenames'] = {self.static.source_path: self.static}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue