aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_lookup.py
Commit message (Collapse)AuthorAgeFilesLines
* Use tox / zimportsMike Bayer2019-05-311-42/+56
| | | | Change-Id: Ia047c7052a6d242c2cf1c7a83981f1e38ea4d928
* py2.5 worksMike Bayer2012-11-111-13/+17
|
* - first pass at running a py3k compatible base in py2k as well.Mike Bayer2012-11-111-2/+2
| | | | | having some weird unicode issues I can't debug; the meaning of str.encode() seems to be changing globally somehow
* - A Template is explicitly disallowedrel_0_5_0Mike Bayer2011-09-271-2/+30
| | | | | | | | | | | | | | | | | | | from having a url that normalizes to relative outside of the root. That is, if the Lookup is based at /home/mytemplates, an include that would place the ultimate template at /home/mytemplates/../some_other_directory, i.e. outside of /home/mytemplates, is disallowed. This usage was never intended despite the lack of an explicit check. The main issue this causes is that module files can be written outside of the module root (or raise an error, if file perms aren't set up), and can also lead to the same template being cached in the lookup under multiple, relative roots. TemplateLookup instead has always supported multiple file roots for this purpose. [ticket:174]
* - use deque instead of list for FastEncodingBufferMike Bayer2011-02-201-0/+11
| | | | | - don't call os.stat twice ! - tee hee !
* - now that trailing whitespace comes up in red, need to get rid of itMike Bayer2011-01-191-7/+7
|
* - Added conditional to RichTracebackMike Bayer2010-05-311-5/+11
| | | | | | | | | such that if no traceback is passed and sys.exc_info() has been reset, the formatter just returns blank for the "traceback" portion. [ticket:135] - some long line cleanup
* - TemplateLookup raises TopLevelLookupException forMike Bayer2010-03-051-0/+7
| | | | | | a given path that is a directory, not a filename, instead of passing through to the template to generate IOError. [ticket:73]
* begin to modernize testing. in particular, get rid of test_htdocs as well ↵Mike Bayer2010-03-021-16/+2
| | | | | | | as ad-hoc HTML file writing, consistently cleanup the modules/cache directories, use nose skiptests for unsupported features.
* - Unit tests now run with nose. [ticket:127]Mike Bayer2010-02-051-0/+66