Commit graph

25 commits

Author SHA1 Message Date
Bruno Binet
d9855ae346 Merge pull request #662 from wking/rich-urlwrapper-comparisons
contents: Add rich comparisons to URLWrapper for easy sorting
2013-01-21 13:30:02 -08:00
Bruno Binet
08a5ea6fdf Merge pull request #663 from wking/url-format-metadata
contents: Page.url_format should expose all metadata
2013-01-18 03:20:10 -08:00
W. Trevor King
733ab8ae6c test_contents: Add tests for metadata export from Page.url_format 2013-01-15 23:08:32 -05:00
W. Trevor King
bebb94c15b test_contents.py: Add URLWrapper comparison tests
The name switch between wrapper_a and wrapper_b ensures that we're not
secretly comparing some other field (e.g. id(object)).
2013-01-15 22:52:02 -05:00
Dirk Makowski
71995d5e1b Port pelican to python 3.
Stays compatible with 2.x series, thanks to an unified codebase.
2013-01-11 03:20:09 +01:00
Bruno Binet
a0504aeabe add support for relative cross-site links 2012-12-01 21:32:02 +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
Rachid Belaid
dcb50a20b2 Add test for the new signal 2012-09-02 19:55:31 +01: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
dave mankoff
c6f1d0aada fix SUMMARY_MAX_LENGTH, document it, and test it 2012-06-11 08:39:13 -04:00
Andrea Crotti
ff5921a469 - move the try/except dance in support.py
- use relative . imports in test files
- remove the "future with import", since python < 2.6 is not supported
2012-03-18 21:08:43 +00:00
Simon
c441855522 add a test for the summary metadata 2012-03-13 21:52:56 +01:00
Alexis Metaireau
3cb18303f6 fix python 2.6 support 2012-03-11 17:26:59 +01:00
draftcode
1c2f631723 Avoid #226. 2012-03-10 21:25:11 +09:00
Alexis Metaireau
a7cea63db6 Merge branch 'urls' of https://github.com/kylef/pelican 2012-03-09 11:42:21 +01:00
Meir Kriheli
dd07ddb0b0 Make sure test passes for dates formatted as utf-8 2012-03-09 02:03:15 +02:00
Bruno Binet
8f8933d991 fix test test_save_as
ERROR: test_save_as (tests.test_contents.TestPage)
If a lang is not the default lang, save_as should be set
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/bruno/dev/pelican/tests/test_contents.py", line 63, in test_save_as
    page.save_as = 'foo-bar.html'
AttributeError: can't set attribute
2012-03-06 16:41:36 +00:00
Alexis Metaireau
02b9b964b8 restore the use of python rather than pypy in the batfiles (windows) 2012-02-27 21:06:33 +01:00
Jiachen Yang
76ee6c2149 Added document and test case for #215 2012-02-28 03:08:39 +09:00
Jiachen Yang
189d72e989 Merge remote-tracking branch 'ametaireau/master' into localedate 2012-02-28 01:43:50 +09:00
Jiachen Yang
e78372f338 import unittest if cannot found unittest2 2012-02-28 01:43:36 +09:00
Martin Brochhaus
67472298ca Added changes as per codereview. 2012-02-20 17:58:23 +01:00
Martin Brochhaus
52fb81a441 Added some fixes to the test suite so that it doesn't fail any more. 2012-02-20 17:39:47 +01:00
Mario Rodas
d19b0c975b test works with python2.5 2011-07-02 15:53:27 -05:00
Mario Rodas
3cd84ab396 moving tests dir 2011-07-02 14:41:39 -05:00
Renamed from pelican/tests/test_contents.py (Browse further)