Chris McDonough
2011-08-28 f4bf6e5c6e09d8c934ccc0389824bd356b663e76
skip renderer scan app integration test on java (uses chameleon)
1 files modified
35 ■■■■ changed files
pyramid/tests/test_integration.py 35 ●●●● patch | view | raw | blame | history
pyramid/tests/test_integration.py
@@ -471,25 +471,26 @@
        res = self.testapp.get('/hello', status=200)
        self.assertTrue('Hello' in res.body)
class RendererScanAppTest(IntegrationBase):
    package = 'pyramid.tests.rendererscanapp'
    def test_root(self):
        res = self.testapp.get('/one', status=200)
        self.assertTrue('One!' in res.body)
if os.name != 'java': # uses chameleon
    class RendererScanAppTest(IntegrationBase):
        package = 'pyramid.tests.rendererscanapp'
        def test_root(self):
            res = self.testapp.get('/one', status=200)
            self.assertTrue('One!' in res.body)
    def test_two(self):
        res = self.testapp.get('/two', status=200)
        self.assertTrue('Two!' in res.body)
        def test_two(self):
            res = self.testapp.get('/two', status=200)
            self.assertTrue('Two!' in res.body)
    def test_rescan(self):
        self.config.scan('pyramid.tests.rendererscanapp')
        app = self.config.make_wsgi_app()
        from webtest import TestApp
        testapp = TestApp(app)
        res = testapp.get('/one', status=200)
        self.assertTrue('One!' in res.body)
        res = testapp.get('/two', status=200)
        self.assertTrue('Two!' in res.body)
        def test_rescan(self):
            self.config.scan('pyramid.tests.rendererscanapp')
            app = self.config.make_wsgi_app()
            from webtest import TestApp
            testapp = TestApp(app)
            res = testapp.get('/one', status=200)
            self.assertTrue('One!' in res.body)
            res = testapp.get('/two', status=200)
            self.assertTrue('Two!' in res.body)
class DummyContext(object):
    pass