Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix EOL tests for Python 2.7 | R. Tyler Croy | 2010-12-12 | 1 | -3/+3 |
| | | | | | | Patch from: Mike Bonnet <mikeb@redhat.com> Change-Id: I3a3a3e57c1c94cac0ee020e41882b86dc9a4d4be | ||||
* | Added test and fix for segfault in namemapper where exception is thrown by ↵ | Jon Siddle | 2010-09-15 | 1 | -0/+13 |
| | | | | __getattr__. | ||||
* | Properly generate a PYTHONPATH and locate the cheetah executable for ↵ | R. Tyler Ballance | 2010-03-21 | 1 | -6/+12 |
| | | | | | | | | CheetahWrapper tests On FreeBSD particularly, the tempfile.mktemp() heavily sandboxes the process into /tmp/ somewhere. Finding absolute paths to the cheetah process and the Cheetah/ directory is necessary to properly run the tests | ||||
* | Find the #encoding directive even if it's after a comment (for example) | R. Tyler Ballance | 2010-01-27 | 1 | -0/+6 |
| | | | | | | | Added a test and applied Juan's patch, everything seems to check out alright with it Reported-by: Juan Fiol <fiolj@yahoo.com> | ||||
* | Import __builtin__ in generated template code in a compatible way with 2 and 3 | R. Tyler Ballance | 2010-01-03 | 1 | -2/+12 |
| | |||||
* | Remove references to the `new` module | R. Tyler Ballance | 2009-12-27 | 1 | -1/+0 |
| | |||||
* | NameMapperTest.failureException cannot be a tuple | R. Tyler Ballance | 2009-12-27 | 1 | -1/+1 |
| | |||||
* | Add regression test for dynamically compiled subclasses of Template | R. Tyler Ballance | 2009-12-26 | 1 | -0/+10 |
| | |||||
* | Add a test to verify the use of getVar and write inside of a PSP | R. Tyler Ballance | 2009-12-19 | 1 | -1/+17 |
| | |||||
* | Refactor the InlineSpanishTest to better clarify a success/failure scenario | R. Tyler Ballance | 2009-12-16 | 1 | -5/+16 |
| | |||||
* | Add a test to verify escaped entities in #raw blocks | R. Tyler Ballance | 2009-12-15 | 1 | -0/+6 |
| | | | | Related to 0cc9f78 and 70c9bd4 | ||||
* | Add another unicode test | R. Tyler Ballance | 2009-12-14 | 1 | -0/+28 |
| | | | | | | | This is based off an IRC conversation in #cheetah which I've honestly forgotten what the bug was when I wrote the test case. Pech gehabt. | ||||
* | Correct relative imports of test modules | R. Tyler Ballance | 2009-11-18 | 1 | -11/+11 |
| | |||||
* | Add DirectiveAnalyzer tests to suite | R. Tyler Ballance | 2009-11-18 | 1 | -0/+2 |
| | |||||
* | Introduce the DirectiveAnalyzer for processing templates for directive usage | R. Tyler Ballance | 2009-11-16 | 1 | -0/+29 |
| | | | | | Hoping to form this into a fully-fledged reporting tool so I can gauge usage of directives to start cutting some out. | ||||
* | Clean up a swath of fixes suggested by 2to3 | R. Tyler Ballance | 2009-11-16 | 5 | -79/+79 |
| | | | | | Fixes from 2to3 include: xrange, ws_comma, repr, reduce, raise, idioms, has_key, future, filter, exec, callable, apply | ||||
* | Refactor Cheetah.Parser.ArgList | R. Tyler Ballance | 2009-11-16 | 2 | -0/+51 |
| | | | | | | Added a test for ArgList as well; a large amount of code in Cheetah.Parser could do well to be cleaned up, but perhaps another day. | ||||
* | Refactor CheetahWrapper tests to locate my local cheetah/cheetah-compile in ↵ | R. Tyler Ballance | 2009-11-16 | 1 | -5/+22 |
| | | | | | | | my PATH Adding the "buildandrun" shortcut script so to easily rerun the full test suite locally; usage: ./buildandrun cheetah/Tests/Test.py | ||||
* | Refactor usage of the "types" module out, per 2to3 -f types | R. Tyler Ballance | 2009-11-16 | 6 | -1139/+27 |
| | | | | | Left out cheetah/Template.py which will need to be refactored a bit more aggressively, particularly in Template.compile() | ||||
* | Refactor raw print statements in accordance with 2to3 | R. Tyler Ballance | 2009-11-16 | 8 | -15/+15 |
| | | | | | Removed prints in a couple places entirely, some of this code should likely use the `logging` module instead | ||||
* | Add --quiet option and use it to suppress messages from the Unicode tests | James Abbatiello | 2009-11-16 | 1 | -1/+1 |
| | |||||
* | Add Template.__unicode__() to return unicode() objects, while ↵ | R. Tyler Ballance | 2009-10-18 | 1 | -0/+16 |
| | | | | | | | | | | | | | | Template.__str__() returns encoded str() objects Per my discussion in #cheetah on IRC with mikeb@ regarding the following issue: https://bugzilla.redhat.com/show_bug.cgi?id=529332 This, in addition to recent patches to cheetah/DummyTransaction.py should alleviate migration issues for users still passing a mishmash of unicode()/str() objects into Templates. __str__() should return a str() object, whereas __unicode__() should return a unicode() object. No-op the EncodeUnicode filter when it encounters a unicode() object. | ||||
* | Add a simple test to help judge perfomance of DummyTransaction.write() | R. Tyler Ballance | 2009-10-14 | 1 | -0/+17 |
| | |||||
* | Correctly use cStringIO which only deals in bytestrings. | R. Tyler Ballance | 2009-10-14 | 1 | -3/+2 |
| | | | | | | | I'm uncertain if there's any lossiness in encoding a unicode() object 'utf-8' prior to writing to the stream, but this does appear to inadvertantly fix another issue we had with mixing UTF-8 encoded strings and unicode() objects when filling a template. | ||||
* | Update the printing of the Performance tests | R. Tyler Ballance | 2009-10-12 | 1 | -5/+9 |
| | | | | | I want to print out the directories to ensure that I'm actually testing the code I think I'm testing (*facepalm*) | ||||
* | Swap out statprof for hotshot profiling with these basic Performance test cases | R. Tyler Ballance | 2009-10-12 | 1 | -10/+11 |
| | |||||
* | implement the popen2.Popen4 interface using the subprocess.Popen backend, to ↵ | Mike Bonnet | 2009-10-12 | 1 | -2/+13 |
| | | | | | | avoid DeprecationWarnings when running the tests on python >= 2.6 Finally got tired of 'em. :) | ||||
* | Don't use function decorator syntax for compatibility with Python 2.3v2.2.2 | James Abbatiello | 2009-09-14 | 1 | -1/+2 |
| | |||||
* | Nuke the VerifyType tests since they're largely unnecessary now | R. Tyler Ballance | 2009-09-14 | 1 | -2/+0 |
| | |||||
* | Prune a leftover print statement | R. Tyler Ballance | 2009-09-10 | 1 | -1/+0 |
| | |||||
* | Ensure all the EOL tests are run, as well as Filters tests | R. Tyler Ballance | 2009-09-10 | 2 | -20/+25 |
| | |||||
* | Remove references to unittest_local_copy which is quite old and causing problems | R. Tyler Ballance | 2009-09-10 | 7 | -11/+7 |
| | |||||
* | Add the VerifyType tests to the runner | R. Tyler Ballance | 2009-09-01 | 3 | -3/+380 |
| | |||||
* | Add Cheps.py test module | R. Tyler Ballance | 2009-08-31 | 1 | -0/+39 |
| | |||||
* | Add the CHEP related test module in here | R. Tyler Ballance | 2009-08-28 | 1 | -0/+2 |
| | |||||
* | Remove the VerifyType module from Test.py, I think I left this on another ↵ | R. Tyler Ballance | 2009-08-14 | 1 | -2/+0 |
| | | | | machine | ||||
* | Merge branch 'next' into performance | R. Tyler Ballance | 2009-08-14 | 1 | -4/+2 |
| | | | | | | | | | | | Left some rename conflicts partially unresolved, need to move src/c/ to cheetah/c/ in the next commit Conflicts: SetupConfig.py cheetah/_namemapper.c src/_namemapper.c src/c/_namemapper.c | ||||
* | Rename the root package to "cheetah" instead of "src" to follow more ↵ | R. Tyler Ballance | 2009-07-16 | 11 | -0/+6559 |
conventional python package naming |