allura
Revision | b1b7275819da55b40d85085209aa7e1bf318f7e6 (tree) |
---|---|
Zeit | 2012-05-11 06:40:41 |
Autor | Dave Brondsema <dbrondsema@geek...> |
Commiter | Cory Johns |
[#4063] add nbhd help page for the projects macro
@@ -558,7 +558,6 @@ class NeighborhoodStatsController(object): | ||
558 | 558 | neighborhood=self.neighborhood, |
559 | 559 | ) |
560 | 560 | |
561 | - | |
562 | 561 | class NeighborhoodModerateController(object): |
563 | 562 | |
564 | 563 | def __init__(self, neighborhood): |
@@ -1,9 +1,7 @@ | ||
1 | 1 | import logging |
2 | 2 | from collections import defaultdict |
3 | -from datetime import datetime, timedelta | |
3 | +from datetime import datetime | |
4 | 4 | |
5 | -import Image | |
6 | -import pymongo | |
7 | 5 | import pkg_resources |
8 | 6 | from pylons import c, g, request |
9 | 7 | from paste.deploy.converters import asbool |
@@ -614,3 +614,7 @@ class TestNeighborhood(TestController): | ||
614 | 614 | def test_profile_topnav_menu(self): |
615 | 615 | r = self.app.get('/u/test-user/', extra_environ=dict(username='test-user')).follow() |
616 | 616 | assert '<a href="/u/test-user/profile/" class="ui-icon-tool-home">' in r |
617 | + | |
618 | + def test_help(self): | |
619 | + r = self.app.get('/p/_admin/help/', extra_environ=dict(username='root')) | |
620 | + assert 'macro' in r |