From e6fa66bd2c18632ef0608c63fb024b01931a5272 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 18 Apr 2010 21:54:20 +0000 Subject: - Use "Venusian" (`http://docs.repoze.org/venusian `) to perform ``bfg_view`` decorator scanning rather than relying on a BFG-internal decorator scanner. (Truth be told, Venusian is really just a generalization of the BFG-internal decorator scanner). - A new install-time dependency on the ``venusian`` distribution was added. - Remove ``repoze.bfg.compat.pkgutil_26.py`` and import alias ``repoze.bfg.compat.walk_packages``. These were only required by internal scanning machinery; Venusian replaced the internal scanning machinery, so these are no longer required. --- repoze/bfg/tests/test_integration.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'repoze/bfg/tests/test_integration.py') diff --git a/repoze/bfg/tests/test_integration.py b/repoze/bfg/tests/test_integration.py index c54509378..b6eb860ee 100644 --- a/repoze/bfg/tests/test_integration.py +++ b/repoze/bfg/tests/test_integration.py @@ -20,8 +20,9 @@ def wsgiapptest(environ, start_response): class WGSIAppPlusBFGViewTests(unittest.TestCase): def test_it(self): + from venusian import ATTACH_ATTR import types - self.failUnless(wsgiapptest.__bfg_view_settings__) + self.failUnless(getattr(wsgiapptest, ATTACH_ATTR)) self.failUnless(type(wsgiapptest) is types.FunctionType) context = DummyContext() request = DummyRequest() -- cgit v1.2.3