bodhi/tests/test_controllers.py | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
New commits:
commit 7cc2d31bd986d41091261da97a55e651f41dc9c7
Author: Luke Macken <lmacken(a)redhat.com>
Date: Thu Mar 10 13:42:30 2011 -0500
Fix yet another broken unit test
diff --git a/bodhi/tests/test_controllers.py b/bodhi/tests/test_controllers.py
index ec3c7d1..b95faba 100644
--- a/bodhi/tests/test_controllers.py
+++ b/bodhi/tests/test_controllers.py
@@ -1237,7 +1237,10 @@ class TestControllers(testutil.DBTest):
testutil.create_request('/updates/admin/push', headers=session)
# Make sure security updates do not slip in unapproved
- assert '0 pending requests' in cherrypy.response.body[0]
+ #assert '0 pending requests' in cherrypy.response.body[0],
cherrypy.response.body[0]
+
+ # We no longer require security approval
+ assert '1 pending requests' in cherrypy.response.body[0],
cherrypy.response.body[0]
# approve the update
me = User.by_user_name('admin')
commit 46074f618a8065c901308a92a79b3d66f76ab658
Author: Luke Macken <lmacken(a)redhat.com>
Date: Thu Mar 10 13:34:35 2011 -0500
Fix a broken unit test
diff --git a/bodhi/tests/test_controllers.py b/bodhi/tests/test_controllers.py
index 9111c95..ec3c7d1 100644
--- a/bodhi/tests/test_controllers.py
+++ b/bodhi/tests/test_controllers.py
@@ -1979,11 +1979,11 @@ class TestControllers(testutil.DBTest):
assert update.critpath_approved
#assert False, testutil.get_log()
assert len(update.comments) == 4, update.comments
- assert update.comments[1].author == 'bodhi', update.comments
- assert update.comments[1].text == config.get('stablekarma_comment')
- assert update.comments[2].author == 'bob', update.comments
assert update.comments[-1].author == 'bodhi', update.comments
- assert update.comments[-1].text == 'Critical path update approved'
+ assert update.comments[-1].text == config.get('stablekarma_comment')
+ assert update.comments[1].author == 'bob', update.comments
+ assert update.comments[-2].author == 'bodhi', update.comments
+ assert update.comments[-2].text == 'Critical path update approved'
def test_critpath_request_complete(self):
"""
Show replies by date