move imports to function scope (see http://docs.pylonshq.com/community/testing.html#guideline-minimize-module-scope-dependencies)
| | |
| | | import unittest |
| | | from pyramid import testing |
| | | |
| | | import sys |
| | | import os.path |
| | | |
| | | class Base(object): |
| | | def setUp(self): |
| | | self.config = testing.setUp() |
| | |
| | | self.assertEqual(lookup.directories, [self.templates_dir]*2) |
| | | |
| | | def test_directories_list(self): |
| | | import sys |
| | | import os.path |
| | | from pyramid.mako_templating import IMakoLookup |
| | | settings = {'mako.directories':['a', 'b']} |
| | | info = DummyRendererInfo({ |