allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject git commit: [#6464] Enable voting on GC Trackers
Date Tue, 20 Aug 2013 18:32:26 GMT
Updated Branches:
  refs/heads/cj/6464 b66c1b0b6 -> 3848b1ecb (forced update)


[#6464] Enable voting on GC Trackers

Signed-off-by: Cory Johns <cjohns@slashdotmedia.com>


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

Branch: refs/heads/cj/6464
Commit: 3848b1ecb77e9e1d5bc851c6732c969b68d6f966
Parents: ead70f5
Author: Cory Johns <cjohns@slashdotmedia.com>
Authored: Tue Aug 20 18:21:23 2013 +0000
Committer: Cory Johns <cjohns@slashdotmedia.com>
Committed: Tue Aug 20 18:32:18 2013 +0000

----------------------------------------------------------------------
 ForgeImporters/forgeimporters/google/tracker.py                    | 2 +-
 .../forgeimporters/tests/google/functional/test_tracker.py         | 1 +
 ForgeImporters/forgeimporters/tests/google/test_tracker.py         | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/3848b1ec/ForgeImporters/forgeimporters/google/tracker.py
----------------------------------------------------------------------
diff --git a/ForgeImporters/forgeimporters/google/tracker.py b/ForgeImporters/forgeimporters/google/tracker.py
index 51391a2..49f052b 100644
--- a/ForgeImporters/forgeimporters/google/tracker.py
+++ b/ForgeImporters/forgeimporters/google/tracker.py
@@ -45,7 +45,7 @@ class GoogleCodeTrackerImporter(ToolImporter):
 
     def import_tool(self, project, user, project_name, mount_point=None,
             mount_label=None, **kw):
-        app = project.install_app('tickets', mount_point, mount_label)
+        app = project.install_app('tickets', mount_point, mount_label, EnableVoting=True)
         app.globals.open_status_names = 'New Accepted Started'
         app.globals.closed_status_names = 'Fixed Verified Invalid Duplicate WontFix Done'
         ThreadLocalORMSession.flush_all()

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/3848b1ec/ForgeImporters/forgeimporters/tests/google/functional/test_tracker.py
----------------------------------------------------------------------
diff --git a/ForgeImporters/forgeimporters/tests/google/functional/test_tracker.py b/ForgeImporters/forgeimporters/tests/google/functional/test_tracker.py
index bf15cc2..b4f9a86 100644
--- a/ForgeImporters/forgeimporters/tests/google/functional/test_tracker.py
+++ b/ForgeImporters/forgeimporters/tests/google/functional/test_tracker.py
@@ -75,6 +75,7 @@ class TestGCTrackerImporter(TestCase):
         self.assertEqual(ticket.status, '')
         self.assertEqual(ticket.milestone, '')
         self.assertEqual(ticket.custom_fields, {})
+        assert c.app.config.options.get('EnableVoting')
 
     @without_module('html2text')
     def test_issue_basic_fields(self):

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/3848b1ec/ForgeImporters/forgeimporters/tests/google/test_tracker.py
----------------------------------------------------------------------
diff --git a/ForgeImporters/forgeimporters/tests/google/test_tracker.py b/ForgeImporters/forgeimporters/tests/google/test_tracker.py
index 05c4c6e..ac50624 100644
--- a/ForgeImporters/forgeimporters/tests/google/test_tracker.py
+++ b/ForgeImporters/forgeimporters/tests/google/test_tracker.py
@@ -45,7 +45,7 @@ class TestTrackerImporter(TestCase):
         importer.import_tool(project, user, project_name='project_name',
                 mount_point='mount_point', mount_label='mount_label')
 
-        project.install_app.assert_called_once_with('tickets', 'mount_point', 'mount_label')
+        project.install_app.assert_called_once_with('tickets', 'mount_point', 'mount_label',
EnableVoting=True)
         gpe.iter_issues.assert_called_once_with('project_name')
         self.assertEqual(importer.process_fields.call_args_list, [
                 mock.call(tickets[0], issues[0]),


Mime
View raw message