1
0
Fork 0
forked from github/pelican
pelican-theme/pelican/tests
W. Trevor King ae4fc5a25e utils: Add path_to_url() and generalize get_relative_path()
The old get_relative_path() implementation assumed os.sep == '/',
which doesn't hold on MS Windows.  The new implementation uses
split_all() for a more general component count.

I added path_to_url(), because the:

  '/'.join(split_all(path))

idiom was showing up in a number of cases, and it's easier to
understand what's going on when that reads:

  path_to_url(path)

This will fix a number of places where I think paths and URLs were
conflated, and should improve MS Windows support.
2013-03-21 12:44:44 -04:00
..
content Move the tests into pelican. Fix #500 2013-03-06 00:41:27 -08:00
output External resources should be scheme-independent 2013-03-18 17:36:35 -07:00
TestPages Move the tests into pelican. Fix #500 2013-03-06 00:41:27 -08:00
themes/assets Move the tests into pelican. Fix #500 2013-03-06 00:41:27 -08:00
__init__.py Move the tests into pelican. Fix #500 2013-03-06 00:41:27 -08:00
default_conf.py Move the tests into pelican. Fix #500 2013-03-06 00:41:27 -08:00
support.py Move the tests into pelican. Fix #500 2013-03-06 00:41:27 -08:00
test_contents.py Move the tests into pelican. Fix #500 2013-03-06 00:41:27 -08:00
test_generators.py Move the tests into pelican. Fix #500 2013-03-06 00:41:27 -08:00
test_importer.py Move the tests into pelican. Fix #500 2013-03-06 00:41:27 -08:00
test_pelican.py Convert '.' and '..' to the less magical os.curdir and os.pardir 2013-03-21 12:44:44 -04:00
test_plugins.py Move the tests into pelican. Fix #500 2013-03-06 00:41:27 -08:00
test_readers.py Use comments in tests, not docstrings. 2013-03-10 22:42:46 -07:00
test_settings.py Convert '.' and '..' to the less magical os.curdir and os.pardir 2013-03-21 12:44:44 -04:00
test_utils.py utils: Add path_to_url() and generalize get_relative_path() 2013-03-21 12:44:44 -04:00
test_webassets.py Use comments in tests, not docstrings. 2013-03-10 22:42:46 -07:00