summaryrefslogtreecommitdiff
path: root/pystache/tests
Commit message (Collapse)AuthorAgeFilesLines
* Making test OS agnostic.Kevin Carrogan2014-05-091-2/+2
|
* Allow tox to run from a downloaded sdist (i.e. without spec tests).Chris Jerdonek2012-11-032-17/+25
|
* Prevent test_pystache.py from expecting spec tests if spec test directory ↵Chris Jerdonek2012-10-201-2/+9
| | | | | | | not present. Prior to this commit, running test_pystache.py from a downloaded sdist has a test failure because the spec tests are not found.
* Tweak merged patch.Chris Jerdonek2012-10-201-9/+17
|
* Merge remote-tracking branch ↵Chris Jerdonek2012-10-201-0/+60
|\ | | | | | | | | | | 'BreakawayConsulting/issue-135-default-delimiters' into issue-135 This is the initial patch for issue #135 from @bennoleslie.
| * Improve patch based on pull request feedbackBen Leslie2012-09-191-18/+10
| | | | | | | | | | | | Replace 'config' with 'context'. Use assertRaises correctly.
| * Enable defaults.DELIMITERS to be monkey-patched by module users.Ben Leslie2012-09-181-0/+68
| | | | | | | | | | | | | | | | | | | | | | This updates the way in which default.DELIMITERS is used to enable simple monkey-patching should a user desire. Monkey-patching isn't the preferred approach however, it can at times be useful and it simple to support. Additionally, test cases are added to ensure certain defaults can be monkey-patched at run-time.
* | Address issue #130: allow string coercion to be customized.Chris Jerdonek2012-10-202-1/+77
| |
* | Address issue #122: add Renderer.render_name().Chris Jerdonek2012-10-162-3/+12
| | | | | | | | | | This commit adds a Renderer.render_name() method that lets one render a template given its name.
* | Add TemplateSpec.template_path for issue #41.Chris Jerdonek2012-10-161-11/+21
|/
* Add unit tests for Loader.load_file() and Loader.load_name().Chris Jerdonek2012-07-231-1/+16
|
* Add a unit test for Locator.find_file().Chris Jerdonek2012-07-232-1/+12
|
* Add support for PyPy (issue #125).Chris Jerdonek2012-06-291-1/+11
|
* Add make_extra_tests() function.Chris Jerdonek2012-05-191-14/+20
|
* Simplify pystache.tests.main by using a closure instead of a class attribute.Chris Jerdonek2012-05-141-33/+50
|
* Completed `python setup.py prep` command to generate .rst from .md.Chris Jerdonek2012-05-061-1/+1
|
* Renderer.render() now accepts ParsedTemplate instances.Chris Jerdonek2012-05-061-1/+5
|
* Documented parse().Chris Jerdonek2012-05-051-1/+1
|
* Moved the default delimiters into pystache.defaults.Chris Jerdonek2012-05-051-1/+2
|
* Removed some redundant methods from RenderEngine.Chris Jerdonek2012-05-051-1/+2
|
* Improved byte-string handling in Python 3.Chris Jerdonek2012-05-041-9/+34
|
* Shared code between RenderEngine's _make_get_section() and _get_string_value().Chris Jerdonek2012-05-041-4/+12
|
* Fixed issue #118: "Handle lambda section values returning non-ascii, ↵Chris Jerdonek2012-05-041-0/+17
| | | | | | | | non-unicode" See-- https://github.com/defunkt/pystache/issues/118
* Merge branch 'master' into developmentChris Jerdonek2012-05-042-5/+20
|\
| * Fixed unittest warnings with Python 3: assertEquals() is deprecated.Chris Jerdonek2012-05-041-5/+5
| |
| * Fixed an issue with list section values mixing lambdas and non-lambdas.Chris Jerdonek2012-05-041-0/+15
| |
* | Added missing_tags attribute validation.Chris Jerdonek2012-05-041-0/+13
| |
* | Fixed a missing_tags unit test for Python 3.Chris Jerdonek2012-05-041-2/+12
| |
* | Finished implementing strict mode for missing tags.Chris Jerdonek2012-05-042-31/+56
| |
* | Added to Renderer class support for missing_tags (not finished yet).Chris Jerdonek2012-05-041-23/+39
| | | | | | | | Support for partial loading added. Still need to support missing tags.
* | RenderEngine constructor now accepts resolve_partial() instead of ↵Chris Jerdonek2012-05-042-33/+60
| | | | | | | | load_partial().
* | Context.get() now raises KeyNotFoundError instead of returning default value.Chris Jerdonek2012-05-041-13/+5
| |
* | Getting "." from an empty context stack now raises a KeyNotFoundError.Chris Jerdonek2012-05-041-6/+23
| |
* | Fixed part of issue #110: accessing from context a property raising an ↵Chris Jerdonek2012-05-031-0/+20
|/ | | | exception.
* Addressed issue #115: "Match spec expectation for partials not found"Chris Jerdonek2012-05-034-13/+44
|
* Merge remote-tracking branch 'rbp/development' into issue-99-dot-notation:Chris Jerdonek2012-05-023-8/+168
|\ | | | | | | | | | | | | | | | | | | This is pull request #100 for issue #99: https://github.com/defunkt/pystache/issues/99 Adds test cases and incorporates some clean-ups. Conflicts: pystache/tests/test_context.py pystache/tests/test_renderengine.py
| * Moving Attachable helper class into the correct moduleRodrigo Bernardo Pimentel2012-04-291-0/+19
| |
| * Merge branch 'development' of https://github.com/defunkt/pystache into ↵Rodrigo Bernardo Pimentel2012-04-293-3/+93
| | | | | | | | | | | | | | | | | | | | development Conflicts: pystache/context.py pystache/tests/test_context.py pystache/tests/test_renderengine.py tests/common.py
* | Some clean-ups to the context module (docstring changes, added TODO's, etc).Chris Jerdonek2012-05-011-3/+3
| |
* | Added a test case that dotted name resolution should make forward-only progress.Chris Jerdonek2012-04-291-0/+13
| |
* | Added failing test case for issue #114.Chris Jerdonek2012-04-291-0/+16
|/
* Refactored spectesting.py: added _convert_children() function.Chris Jerdonek2012-04-291-8/+33
|
* Fixed issue #113: "Section lambdas mistakenly pushed onto context stack"Chris Jerdonek2012-04-291-0/+34
|
* Commented some of the section parsing code.Chris Jerdonek2012-04-281-2/+2
|
* Added back using nose to test a subset of tests.Chris Jerdonek2012-04-281-1/+3
|
* Stubbed out tests/test_parser.py.Chris Jerdonek2012-04-281-0/+26
|
* Add RenderEngine test cases for "falsey" context values.Chris Jerdonek2012-04-251-0/+21
|
* Renamed Context to ContextStack.Chris Jerdonek2012-04-252-37/+37
|
* Refactored by adding a resolve() function to context.py:Chris Jerdonek2012-04-241-1/+1
| | | | | | | The resolve() function is responsible for the interpolation name resolution rules described in the Mustache spec. Also, falsey values are now coerced to strings using Python's str(), which is more in line with the spec.
* Test scripts now work with and without source.Chris Jerdonek2012-04-241-10/+31
|