incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject git commit: [#6654] fix tracker stats, broken in [235614]
Date Mon, 16 Sep 2013 21:25:49 GMT
Updated Branches:
  refs/heads/master b6776afe3 -> 560082138


[#6654] fix tracker stats, broken in [235614]


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/56008213
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/56008213
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/56008213

Branch: refs/heads/master
Commit: 560082138424a38215b93e98401223581ab2f146
Parents: b6776af
Author: Dave Brondsema <dbrondsema@slashdotmedia.com>
Authored: Fri Sep 13 03:16:12 2013 +0000
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Fri Sep 13 03:16:12 2013 +0000

----------------------------------------------------------------------
 ForgeTracker/forgetracker/templates/tracker/stats.html  | 3 ++-
 ForgeTracker/forgetracker/tests/functional/test_root.py | 7 +++++++
 2 files changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/56008213/ForgeTracker/forgetracker/templates/tracker/stats.html
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/templates/tracker/stats.html b/ForgeTracker/forgetracker/templates/tracker/stats.html
index 9db3fb3..5c8b509 100644
--- a/ForgeTracker/forgetracker/templates/tracker/stats.html
+++ b/ForgeTracker/forgetracker/templates/tracker/stats.html
@@ -41,4 +41,5 @@
 <li>7 days: {{week_comments}}</li>
 <li>14 days: {{fortnight_comments}}</li>
 <li>30 days: {{month_comments}}</li>
-</ul>
\ No newline at end of file
+</ul>
+{% endblock %}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/56008213/ForgeTracker/forgetracker/tests/functional/test_root.py
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/tests/functional/test_root.py b/ForgeTracker/forgetracker/tests/functional/test_root.py
index 86ef522..d2185fa 100644
--- a/ForgeTracker/forgetracker/tests/functional/test_root.py
+++ b/ForgeTracker/forgetracker/tests/functional/test_root.py
@@ -2543,3 +2543,10 @@ class TestBulkMove(TrackerTestController):
 def sidebar_contains(response, text):
     sidebar_menu = response.html.find('div', attrs={'id': 'sidebar'})
     return text in str(sidebar_menu)
+
+
+class TestStats(TrackerTestController):
+
+    def test_stats(self):
+        r = self.app.get('/bugs/stats/', status=200)
+        assert_in('# tickets: 0', r.body)
\ No newline at end of file


Mime
View raw message