Skip to content

Commit

Permalink
added more date filter tests (using date str)
Browse files Browse the repository at this point in the history
  • Loading branch information
colinta committed Jun 19, 2012
1 parent b9ef1cd commit b6302ba
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions strange_case/tests/filters_site/config.yaml
@@ -1,4 +1,5 @@
a_date: !!timestamp '2012-05-12 09:59:11.399040' a_date: !!timestamp '2012-05-12 09:59:11.399040'
a_str_date: 2012-05-12 09:59:11
filters: filters:
date: strange_case.extensions.date.date date: strange_case.extensions.date.date
timestamp: strange_case.extensions.date.timestamp timestamp: strange_case.extensions.date.timestamp
Expand Down
3 changes: 3 additions & 0 deletions strange_case/tests/filters_site/site/index.j2
Expand Up @@ -2,6 +2,9 @@
{{ a_date|date }} {{ a_date|date }}
{{ a_date|date('%c') }} {{ a_date|date('%c') }}


{{ a_str_date|date }}
{{ a_str_date|date('%c') }}

{{ 'Some *markdown* text'|markdown }} {{ 'Some *markdown* text'|markdown }}


{{ 'sha'|sha }} {{ 'sha'|sha }}
Expand Down
3 changes: 3 additions & 0 deletions strange_case/tests/test_filters_site.py
Expand Up @@ -13,6 +13,9 @@ def test_filters_site(config):
12 May 2012 12 May 2012
Sat May 12 09:59:11 2012 Sat May 12 09:59:11 2012
12 May 2012
Sat May 12 09:59:11 2012
<p>Some <em>markdown</em> text</p> <p>Some <em>markdown</em> text</p>
d8f4590320e1343a915b6394170650a8f35d6926 d8f4590320e1343a915b6394170650a8f35d6926
Expand Down

0 comments on commit b6302ba

Please sign in to comment.