incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [3/11] git commit: [#5727] ticket:264 Test skeleton
Date Tue, 12 Feb 2013 22:21:49 GMT
[#5727] ticket:264 Test skeleton


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

Branch: refs/heads/cj/5685
Commit: ba2f013c763e117bebfb40d5df79c053da835bf6
Parents: 6a37341
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Fri Feb 1 11:09:34 2013 +0000
Committer: Dave Brondsema <dbrondsema@geek.net>
Committed: Tue Feb 12 16:58:47 2013 +0000

----------------------------------------------------------------------
 .../tests/command/test_fix_discussion.py           |   21 +++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/ba2f013c/ForgeTracker/forgetracker/tests/command/test_fix_discussion.py
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/tests/command/test_fix_discussion.py b/ForgeTracker/forgetracker/tests/command/test_fix_discussion.py
new file mode 100644
index 0000000..28d53e2
--- /dev/null
+++ b/ForgeTracker/forgetracker/tests/command/test_fix_discussion.py
@@ -0,0 +1,21 @@
+from alluratest.controller import setup_basic_test, setup_global_objects
+from forgetracker.command import fix_discussion
+
+test_config = 'test.ini#main'
+
+
+def setUp(self):
+    """Method called by nose before running each test"""
+    setup_basic_test()
+    setup_global_objects()
+
+
+def break_discussion():
+    """Emulate buggy 'ticket move' behavior for discussion"""
+    pass
+
+
+def test_fix_discussion():
+    break_discussion()
+    cmd = fix_discussion.FixDiscussion('fix-discussion')
+    cmd.run([test_config, 'project'])


Mime
View raw message