Pastebin

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
diff --git a/Allura/allura/tests/functional/test_admin.py b/Allura/allura/tests/functional/test_admin.py
index 9535c36..8b1d703 100644
--- a/Allura/allura/tests/functional/test_admin.py
+++ b/Allura/allura/tests/functional/test_admin.py
@@ -155,10 +155,13 @@ def test_admin_controller(self):
         assert "uninstall tool test-tool" in r.body, r.body

     def test_tool_permissions(self):
+        BUILTIN_APPS = ['activity', 'blog', 'discussion', 'git', 'link',
+                'shorturl', 'svn', 'tickets', 'userstats', 'wiki']
         self.app.get('/admin/')
         for i, ep in enumerate(pkg_resources.iter_entry_points('allura')):
             app = ep.load()
-            if not app.installable: continue
+            if not app.installable or ep.name.lower() not in BUILTIN_APPS:
+                continue
             tool = ep.name
             with audits('install tool test-%d' % i):
                 self.app.post('/admin/update_mounts', params={