Commit graph

170 commits

Author SHA1 Message Date
W. Trevor King
733ab8ae6c test_contents: Add tests for metadata export from Page.url_format 2013-01-15 23:08:32 -05:00
Alexis Metaireau
92c085c28e Merge pull request #635 from michaelreneer/markdown-summary-metadata
Updated markdown reader to parse summary metadata as markup.
2012-12-11 05:07:30 -08:00
Alexis Metaireau
98c8db568b Merge pull request #577 from davidjb/import-improvements-slug
Provide slug storage option for posts during Pelican import
2012-12-11 03:52:12 -08:00
David Beitey
b4c5d7cf62 Store slugs in posts by default on Pelican import 2012-12-11 21:44:40 +10:00
Michael Reneer
f66c16bd52 Updated unit tests to test markdown summary metadata. 2012-12-11 00:37:06 -05:00
Bruno Binet
e4dd5c1c00 Merge pull request #615 from bbinet/revert-523
revert #523
2012-12-03 14:05:35 -08:00
Bruno Binet
f604cc4df8 update functional tests to test TEMPLATE_PAGES feature
closes #614: cannot reproduce this issue.
2012-12-03 22:56:07 +01:00
Bruno Binet
8bb86d3e5d revert #523
we don't need a new MARKDOWN_EXTENSIONS setting because the equivalent setting
MD_EXTENSIONS already exists.
2012-12-03 22:35:11 +01:00
Bruno Binet
fc13ae8e76 add new file to functional test content to showcase FILENAME_METADATA
and update functional tests output
2012-12-03 09:54:43 +01:00
Bruno Binet
92b9ccb08a fix failing TestArticlesGenerator.test_generate_context test
new file have been added to the content directory so articles_expected needs to
be updated
2012-12-03 09:54:43 +01:00
Bruno Binet
dfab8ed5b9 test the "metadata from filename" feature 2012-12-03 09:54:43 +01:00
Brian C. Lane
49f481e399 Add asciidoc reader support
http://www.methods.co.nz/asciidoc/index.html

Processes files ending in .asc with asciidoc. Extra arguments can be
passed by using the ASCIIDOC_OPTIONS config setting
2012-12-02 10:20:13 -08:00
Bruno Binet
523ac9f64c update functional test output (relative cross-site links support)
$ LC_ALL="C" pelican -o tests/output/custom/ -s samples/pelican.conf.py \
    samples/content/
$ LC_ALL="C" pelican -o tests/output/basic/ samples/content/
2012-12-01 21:33:30 +01:00
Bruno Binet
a0504aeabe add support for relative cross-site links 2012-12-01 21:32:02 +01:00
Bruno Binet
a6dd3178b1 test that 4 occurences of log "skipping url replacement" are found 2012-12-01 21:32:02 +01:00
Bruno Binet
b5b35c9fc8 update functional tests output
$ LC_ALL="C" pelican -o tests/output/custom/ -s samples/pelican.conf.py \
    samples/content/
$ LC_ALL="C" pelican -o tests/output/basic/ samples/content/
2012-12-01 21:31:44 +01:00
Bruno Binet
c74abe579b Don't rewrite URLs
Remove the code that was appending ../static in front of some URLs, and add a
way to do cross-content linking.
2012-12-01 21:30:50 +01:00
Simon
5df258c5f0 Update the basic and custom tests output. 2012-11-29 21:50:46 +01:00
Simon
088c810b00 Change the way to compute relative paths to avoid the leading .././ when using
relative urls.
2012-11-29 21:50:46 +01:00
Matt Layman
8fe68aa035 Added some unit tests for the gzip cache plugin 2012-11-29 15:00:45 +01:00
Justin Mayer
7056622322 Fix missing SITEURL and base home link
1. Following up on bbinet's changes in f12a297, ensure that the notmyidea
theme's article.html template includes the SITEURL variable when
constructing URL links.

2. Add missing slash to the base.html template so that clicking on the
site header at top left refers to "/" instead of "" when SITEURL is not
defined. Otherwise, the "" target will cause the browser to load the
current page and not the site's root (as one would expect).
2012-11-27 16:01:05 -08:00
Bruno Binet
07ccf477d0 update "basic" output for functional tests so that test pass
LC_ALL="C" pelican -o tests/output/basic/ samples/content/
2012-11-28 00:29:52 +01:00
Bruno Binet
080c884c1a restore test_basic_generation_works functional test 2012-11-28 00:29:51 +01:00
Bruno Binet
4d6ddd0af3 fix failing tests 2012-11-28 00:29:51 +01:00
Bruno Binet
1c44f49d1b remove importlib dependency
importlib is only available for python >= 2.7
2012-11-23 15:51:01 +01:00
Bruno Binet
801bc755b5 Merge branch 'pr/558'
Conflicts:
	docs/settings.rst
	pelican/signals.py
2012-11-23 15:32:17 +01:00
Simon
816e8d88e0 Change webasset tests organization to avoid running pelican twice for each test.
As setUp is run for each test, the previous implementation was running pelican
twice (once for relative urls and once for absolute) for each test, which was not
really optimal :-).

Solution: make a base class which is inherated by a class for relative urls and
another for absolute urls.
2012-11-22 13:22:49 +01:00
Alexis Métaireau
09ddd92efc update the output for functional tests 2012-11-21 16:39:05 +01:00
Tomi Pieviläinen
3e454045e9 Update test data 2012-11-21 15:45:50 +02:00
Simon
f413a8da79 Change webassets configuration for relative urls.
Set the ASSET_URL to be relative to the 'theme/' url, which requires to use
{{ SITEURL }}/{{ ASSET_URL }} in the template and make it works with both
relative and absolute urls.
2012-11-20 23:42:52 +01:00
Simon
7ff0d0e686 Move webassets tests in their own file. 2012-11-20 23:42:11 +01:00
Alexis Metaireau
67c576add6 Merge pull request #539 from bbinet/recursive-diff
directory comparison should be recursive in functional tests
2012-11-16 01:07:01 -08:00
Bruno Binet
c787e02dcc Merge branch 'pr/555'
Conflicts:
	pelican/contents.py
2012-11-13 01:23:31 +01:00
Bruno Binet
960c35596c update "custom" output for functional tests
LC_ALL=C pelican -o tests/output/custom/ -s samples/pelican.conf.py samples/content/
2012-11-12 23:56:38 +01:00
jawher
a79904c075 Update the generators tests to use FEED_ALL_ATOM as the default set atom feed instead of FEED_ATOM 2012-11-12 23:01:17 +01:00
Simon
7088135f5e Add tests for webassets: test absolute url and Jinja configuration 2012-11-07 00:18:48 +01:00
Simon
4cfb0cd24e Move Webassets in a plugin 2012-11-07 00:17:50 +01:00
Bruno Binet
df66579fc2 directory comparison should be recursive in functional tests 2012-11-07 00:01:59 +01:00
Bruno Binet
d6ec9b2028 update "custom" output for functional tests
LC_ALL=C pelican -o tests/output/custom/ -s samples/pelican.conf.py samples/content/

we really need to merge #539 so that functional tests won't succeed if
output is different...
2012-11-06 23:58:34 +01:00
Simon
b66a37ccb1 Unit tests for webassets
remove the unit tests for the lesscss generator (TestLessCSSGenerator class) and
replace it with tests for webassets:

- add a sample scss file
- run pelican with example files
- compare the generated css file with a reference one
- look in the html code for the correct link tag
2012-11-05 21:56:18 +01:00
David Beitey
e2c3701757 Decode HTML entities in titles on WP import 2012-11-03 21:55:56 +10:00
Bruno Binet
3734c48489 add test for TemplatePagesGenerator 2012-10-30 09:56:10 +01:00
Bruno Binet
c0ed9e1cff add test for USE_FOLDER_AS_CATEGORY setting (#517) 2012-10-28 20:54:39 +01:00
Brendan Wholihan
f7a2f8ea47 Removed AUTHOR defaulting to OS User /John Doe, so both a blank or undefined (None) author is possible.
Reverted templates back to checking author object, since a None object is possible. Name could be checked for blank if required
ATOM spec states an author element should be provided, so passes a blank name if not specified
Updated unit test
2012-10-26 18:20:05 +01:00
Simon
ae8cf9defd refactor the check of executable for unit tests
pandoc was checked directly with a `os.system` call, and the output with version
and copyright of pandoc was displayed when running tests.

- replace the pandoc check with the `skipIfNoExecutable` function.
- in `skipIfNoExecutable`, the `valid_exit_code` is not needed, the executable
  is not found if an `OSError` exception is catched.
2012-10-25 22:50:29 +02:00
Bruno Binet
4029f2ec82 refactoring so that command line options override settings
and Pelican class now accepts a single parameter ``settings``
2012-10-16 01:35:39 +02:00
Alexis Métaireau
41b93f3dcc add gittip to the output 2012-10-13 02:12:41 +02:00
Alexis Métaireau
299277b140 merge rachid changes 2012-10-12 23:31:37 +02:00
Alexis Métaireau
34218ee132 fix the tests 2012-10-12 23:28:18 +02:00
Alexis Metaireau
848fdedec7 Merge pull request #523 from StephaneBunel/master
New config parameter to enable Markdown extensions
2012-10-12 13:32:30 -07:00