incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [3/50] git commit: [#4339] ticket:237 test for 'move ticket' page
Date Tue, 22 Jan 2013 23:23:18 GMT
[#4339] ticket:237 test for 'move ticket' page


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

Branch: refs/heads/cj/4691
Commit: 8b41346be785ba27972d8656dbf21f730d629f6e
Parents: a594dda
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Thu Dec 13 13:58:12 2012 +0000
Committer: Cory Johns <johnsca@geek.net>
Committed: Fri Jan 18 21:53:18 2013 +0000

----------------------------------------------------------------------
 .../forgetracker/tests/functional/test_root.py     |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/8b41346b/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 549964c..ad41056 100644
--- a/ForgeTracker/forgetracker/tests/functional/test_root.py
+++ b/ForgeTracker/forgetracker/tests/functional/test_root.py
@@ -1057,6 +1057,17 @@ class TestFunctionalController(TrackerTestController):
         # not found and has not import_id
         self.app.get('/p/test/bugs/42042/', status=404)
 
+    @td.with_tool('test', 'Tickets', 'bugs2')
+    @td.with_tool('test2', 'Tickets', 'bugs')
+    @td.with_tool('test2', 'Tickets', 'bugs2')
+    def test_move_ticket(self):
+        self.new_ticket(summary='test')
+        r = self.app.get('/p/test/bugs/1/move')
+        trackers = r.html.find('select', {'name': 'tracker'}).findAll('option')
+        trackers = set([t.text for t in trackers])
+        expected = set(['test/bugs', 'test/bugs2', 'test2/bugs', 'test2/bugs2'])
+        assert trackers == expected, trackers
+
 
 class TestMilestoneAdmin(TrackerTestController):
     def _post(self, params, **kw):


Mime
View raw message