Commit graph

136 commits

Author SHA1 Message Date
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
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
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
Stéphane Bunel
5e895317f6 FIX: Standardizing "extentions" to "extensions" 2012-10-03 22:42:07 +02:00
Stéphane Bunel
e0674aad87 FIX: Standardizing "extentions" to "extensions" 2012-10-03 22:37:18 +02:00
Stéphane Bunel
ee46becaf9 FIX: Standardizing "extentions" to "extensions" 2012-10-03 22:29:59 +02:00
Stéphane Bunel
d9d58b0510 FIX: "extentions" -> "extensions" 2012-10-03 22:28:00 +02:00
Brian St. Pierre
15875b8bd1 Fix DELETE_OUTPUT_DIRECTORY crash when no output dir 2012-10-02 08:51:31 -04:00
Stéphane Bunel
1beff31bd8 FIX test_generate_context() to include new file content/article_with_markdown_markup_extentions.md 2012-09-28 23:29:10 +02:00
Stéphane Bunel
45c836fdf5 Update docs and tests for MARKDOWN_EXTENTIONS 2012-09-28 23:09:57 +02:00
Stéphane Bunel
226aa2d8f3 Update docs and tests for MARKDOWN_EXTENTIONS 2012-09-28 22:54:01 +02:00
Rachid Belaid
dcb50a20b2 Add test for the new signal 2012-09-02 19:55:31 +01:00
Alexis Metaireau
88555de28c Merge pull request #490 from tbunnyman/fixDEFAULT_CONFIGoverwrite
Deep copy _DEFAULT_SETTINGS instead of linking.
2012-08-30 15:08:28 -07:00
tBunnyMan
663d1e7347 Added extra tests to help prevent regression. 2012-08-30 14:50:52 -07:00
tBunnyMan
644fd4ed5f Deep copy _DEFAULT_SETTINGS instead of linking.
This caused the defaults to be overwritten and edge case bugs with tests.
The test for empty setting needed to be updated to reflect that the method
for setting up the local settings sets extra settings.
2012-08-29 13:36:15 -07:00
the Bunny Man
9c9963b608 Merge pull request #487 from getpelican/DRY-functional-tests
avoid repetition in the functional tests
2012-08-29 11:25:01 -07:00
the Bunny Man
fb8a069d4a Merge pull request #476 from tbunnyman/fixAutorunInfLoop
Fix autorun inf loop
2012-08-29 08:58:19 -07:00
Alexis Metaireau
bba3caa697 avoid repeatition in the functional tests 2012-08-27 22:17:11 +02:00
tBunnyMan
9435b381ed Cleaned up tests.
Used assertItemsEqual in article generation to create more precise tests than with an elif chain
Separated out categories out into their own named test for clarity
Closes #405
2012-08-24 13:14:14 -07:00
tBunnyMan
95af2e46ec Missed a line in commit. 2012-08-23 13:13:41 -07:00
tBunnyMan
a37ba369ef Implemented better "valid files not found" behavior.
Used an exception so show error state.
Used a bool flag to make sure the error is only shown once PER error.
Updated tests to check for the correct Exception raised
2012-08-23 12:44:22 -07:00
tBunnyMan
86da6d1f2e Check for value error caused by no valid files found with files_changed
This causes an infinite loop when in auto-reload
Fix #467
Fix #451
Fix #443
2012-08-23 11:05:07 -07:00
Alexis Metaireau
0e4d493d93 typogrify also does some changes on the abbr 2012-07-27 00:34:47 +02:00
Alexis Metaireau
f3280071c1 change the link to pelican in the default theme 2012-07-27 00:31:02 +02:00
Alexis Metaireau
20d5c1ab13 update the desired output so the tests pass 2012-07-20 12:57:48 +02:00
Alexis Metaireau
8007c20c79 Merge pull request #418 from tbunnyman/WarnOnFeedGeneration#383
Update: De-appreciate FEED for FEED_RSS & FEED_ATOM
2012-07-20 03:53:18 -07:00
Alexis Metaireau
db79abdc13 Merge pull request #419 from tbunnyman/ReverseArchiveOrder#304
Change default REVERSE_ARCHIVE_ORDER to true
2012-07-20 03:51:59 -07:00
Alexis Metaireau
1ba712bea9 Merge pull request #423 from lueo/asian_slug
Add unidecode for translating slugs in asian languages
2012-07-20 03:50:55 -07:00
Dirkjan Ochtman
636fd6cc38 Add support for abbreviations to reST translator (fixes #395). 2012-07-17 13:30:06 +02:00
tBunnyMan
5f958ae84d Refactor atom feed names for clarity
FEED -> FEED_ATOM
TAG_FEED -> TAG_FEED_ATOM
CATEGORY_FEED -> CATEGORY_FEED_ATOM
2012-07-16 09:35:05 -07:00
Leonard Huang
6f40e452e1 Add unidecode for translating slugs in asian languages 2012-07-16 11:36:20 +08:00
tBunnyMan
79e480a894 Change default REVERSE_ARCHIVE_ORDER to true
Updated documentation and updated tests to reflect correct default order
Fixes #304
2012-07-14 17:53:10 -07:00
Alexis Metaireau
4ce5adb2a0 Merge branch 'master' of github.com:ametaireau/pelican into fix-functional-tests 2012-07-10 13:51:34 +02:00
Alexis Metaireau
4d23ffc112 Updated the functional tests to match latest changes. 2012-07-10 13:42:43 +02:00
tBunnyMan
dff5b3589b Add per page templates. Closes #376
Also set up helper classes in test_generators.py for cleaner tests
2012-07-07 14:15:43 -07:00
Alexis Metaireau
6521af5a13 Merge pull request #394 from tbunnyman/issue#380
Small fix for nose tests
2012-07-05 02:19:51 -07:00
tBunnyMan
886a1d94b9 Changed name of the page helper method to prevent nose from running it as a test 2012-07-04 17:09:42 -07:00