Ticket #14123: skip_tests.patch

File skip_tests.patch, 1.0 KB (added by Łukasz Rekucki, 14 years ago)

Simple test skips.

  • tests/regressiontests/admin_views/tests.py

    diff --git a/tests/regressiontests/admin_views/tests.py b/tests/regressiontests/admin_views/tests.py
    index bb787be..6e5d0d3 100644
    a b class AdminDocsTest(TestCase):  
    21812181        self.client.logout()
    21822182
    21832183    def test_tags(self):
     2184        try:
     2185            import docutils
     2186        except ImportError:
     2187            return # skip this test if no docutils are installed
     2188
    21842189        response = self.client.get('/test_admin/admin/doc/tags/')
    21852190
    21862191        # The builtin tag group exists
    class AdminDocsTest(TestCase):  
    21992204        self.assertContains(response, '<li><a href="#admin_actions">admin_actions</a></li>')
    22002205
    22012206    def test_filters(self):
     2207        try:
     2208            import docutils
     2209        except ImportError:
     2210            return # skip this test if no docutils are installed
     2211
    22022212        response = self.client.get('/test_admin/admin/doc/filters/')
    22032213
    22042214        # The builtin filter group exists
Back to Top