bodhi/model.py | 2 +- bodhi/tests/test_client.py | 2 +- bodhi/tests/test_controllers.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-)
New commits: commit ffd916c5b31030da23e558e2a1529f5cb0630b07 Author: Luke Macken lmacken@redhat.com Date: Thu Mar 4 07:17:41 2010 -0500
Minor tweaks to our test suite to get it running again
diff --git a/bodhi/tests/test_client.py b/bodhi/tests/test_client.py index d82a072..ed2134f 100644 --- a/bodhi/tests/test_client.py +++ b/bodhi/tests/test_client.py @@ -208,4 +208,4 @@ close_bugs=True update = bodhi.query()['updates'][0] assert update and isinstance(update, dict) assert bodhi.update_str(update).startswith(u'================================================================================\n TurboGears-1.0.3.2-1.fc7\n================================================================================\n Release: Fedora 7\n Status: pending\n Type: bugfix\n Karma: 0\n Request: stable\n Bugs: 12345 - None\n : 6789 - None\n Notes: foo\n Submitter: guest\n') - assert bodhi.update_str(update).endswith(u' (karma 0)\n This update has been submitted for stable\n\n http://localhost:8084/updates/TurboGears-1.0.3.2-1.fc7%5Cn') + assert bodhi.update_str(update).endswith(u' (karma 0)\n This update has been submitted for stable.\n\n http://localhost:8084/updates/TurboGears-1.0.3.2-1.fc7%5Cn'), repr(bodhi.update_str(update)) diff --git a/bodhi/tests/test_controllers.py b/bodhi/tests/test_controllers.py index 7bae57a..eeedc03 100644 --- a/bodhi/tests/test_controllers.py +++ b/bodhi/tests/test_controllers.py @@ -1164,14 +1164,14 @@ class TestControllers(testutil.DBTest): assert len(update.comments) == 1 assert update.comments[0].author == 'guest' assert update.comments[0].karma == 0 - assert update.comments[0].text == 'This update has been submitted for testing' + assert update.comments[0].text == 'This update has been submitted for testing. ' testutil.create_request('/updates/request/stable/%s' % params['builds'], method='POST', headers=session) update = PackageUpdate.byTitle(params['builds']) assert update.request == 'stable' assert len(update.comments) == 2 - assert update.get_comments()[-1].text == 'This update has been submitted for stable' + assert update.get_comments()[-1].text == 'This update has been submitted for stable. ' testutil.create_request('/updates/request/obsolete/%s' % params['builds'], method='POST', headers=session)
commit df270c4978a3bf8ef6f3e6277886d468be7911cc Author: Luke Macken lmacken@redhat.com Date: Thu Mar 4 07:17:27 2010 -0500
Have bodhi mention the critpath requirements in it's comments
diff --git a/bodhi/model.py b/bodhi/model.py index 7b36eaa..34d2220 100644 --- a/bodhi/model.py +++ b/bodhi/model.py @@ -439,7 +439,7 @@ class PackageUpdate(SQLObject): #self.date_pushed = None notes = notes and '. '.join(notes) or '' flash_log("%s has been submitted for %s. %s" %(self.title,action,notes)) - self.comment('This update has been submitted for %s' % action, + self.comment('This update has been submitted for %s. %s' % (action, notes), author=identity.current.user_name) mail.send_admin(action, self)