• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

allura


Commit MetaInfo

Revisión31c15aae9de8b44418fd0e24c1e6fe2746fe14b7 (tree)
Tiempo2012-07-18 04:25:21
AutorIgor Bondarenko <jetmind2@gmai...>
CommiterCory Johns

Log Message

[#4481] ticket:102 Fix test

Cambiar Resumen

Diferencia incremental

--- a/ForgeTracker/forgetracker/tests/functional/test_root.py
+++ b/ForgeTracker/forgetracker/tests/functional/test_root.py
@@ -833,6 +833,13 @@ class TestFunctionalController(TrackerTestController):
833833
834834 def test_vote(self):
835835 r = self.new_ticket(summary='test vote').follow()
836+ assert_false(r.html.find('div', {'id': 'vote'}))
837+
838+ # enable voting
839+ self.app.post('/admin/bugs/set_options',
840+ params={'EnableVoting': 'true'})
841+
842+ r = self.app.get('/bugs/1/')
836843 votes_up = r.html.find('span', {'id': 'votes-up'})
837844 votes_down = r.html.find('span', {'id': 'votes-down'})
838845 assert_in('0', str(votes_up))