bodhi.egg-info/PKG-INFO | 2 +-
bodhi.egg-info/SOURCES.txt | 1 -
bodhi/tests/test_controllers.py | 29 ++++++++++++++++-------------
3 files changed, 17 insertions(+), 15 deletions(-)
New commits:
commit f74aec1cbca2206c6b7991402961ef433626d284
Author: Luke Macken <lmacken(a)redhat.com>
Date: Tue Aug 11 20:51:26 2009 -0400
Fix the latest broken unit test :)
diff --git a/bodhi.egg-info/PKG-INFO b/bodhi.egg-info/PKG-INFO
index ba9389a..55e00f9 100644
--- a/bodhi.egg-info/PKG-INFO
+++ b/bodhi.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.0
Name: bodhi
-Version: 0.6.1
+Version: 0.6.2
Summary: Bodhi is a modular web-system that facilitates the process of publishing updates
for a Fedora-based software distribution
Home-page:
https://fedorahosted.org/bodhi
Author: Luke Macken
diff --git a/bodhi.egg-info/SOURCES.txt b/bodhi.egg-info/SOURCES.txt
index 08e9f61..f956a4c 100644
--- a/bodhi.egg-info/SOURCES.txt
+++ b/bodhi.egg-info/SOURCES.txt
@@ -35,7 +35,6 @@ bodhi.egg-info/dependency_links.txt
bodhi.egg-info/entry_points.txt
bodhi.egg-info/not-zip-safe
bodhi.egg-info/requires.txt
-bodhi.egg-info/sqlobject.txt
bodhi.egg-info/top_level.txt
bodhi/config/__init__.py
bodhi/config/app.cfg
diff --git a/bodhi/tests/test_controllers.py b/bodhi/tests/test_controllers.py
index 9ff1322..cbc8576 100644
--- a/bodhi/tests/test_controllers.py
+++ b/bodhi/tests/test_controllers.py
@@ -86,7 +86,7 @@ class TestControllers(testutil.DBTest):
'notes' : 'foobar'
}
self.save_update(params)
- assert "You must provide your credentials before accessing this
resource." in cherrypy.response.body[0]
+ assert "You must provide your credentials before accessing this
resource." in cherrypy.response.body[0], cherrypy.response.body
def test_new_update(self):
session = login()
@@ -568,16 +568,19 @@ class TestControllers(testutil.DBTest):
}
# Monkey-patch our DevBuildsys
- oldGetBuild = koji.getBuild
- koji.getBuild = lambda x: {'epoch': None, 'name':
'TurboGears',
- 'nvr': 'TurboGears-1.0.2.2-2.fc7',
- 'release': '2.fc7',
- 'tag_name':
'dist-fc7-updates-testing',
- 'version': '1.0.2.2'}
+ from bodhi.buildsys import DevBuildsys
+ oldGetBuild = DevBuildsys.getBuild
+ DevBuildsys.getBuild = lambda *x, **y: {
+ 'epoch': None, 'name': 'TurboGears',
+ 'nvr': 'TurboGears-1.0.2.2-2.fc7',
+ 'release': '2.fc7',
+ 'tag_name': 'dist-fc7-updates-testing',
+ 'version': '1.0.2.2'
+ }
# Make a newer build already exist
- oldListTagged = koji.listTagged
- koji.listTagged = lambda *x, **y: [
+ oldListTagged = DevBuildsys.listTagged
+ DevBuildsys.listTagged = lambda *x, **y: [
{'epoch': None, 'name': 'TurboGears',
'nvr': 'TurboGears-1.0.2.3-2.fc7', 'release':
'2.fc7',
'tag_name': 'dist-fc7-updates-testing',
'version': '1.0.2.3'},
@@ -585,8 +588,8 @@ class TestControllers(testutil.DBTest):
testutil.capture_log(['bodhi.controllers', 'bodhi.util',
'bodhi.model'])
self.save_update(params, session)
- koji.getBuild = oldGetBuild
- koji.listTagged = oldListTagged
+ DevBuildsys.getBuild = oldGetBuild
+ DevBuildsys.listTagged = oldListTagged
assert 'Broken update path: TurboGears-1.0.2.2-2.fc7 is older than
TurboGears-1.0.2.3-2.fc7 in dist-rawhide' in testutil.get_log()
def test_broken_update_path_on_request(self):
@@ -1122,13 +1125,13 @@ class TestControllers(testutil.DBTest):
'notes' : '',
'edited' :
u'kdelibs-4.1.0-5.fc9,kdegames-4.1.0-2.fc9,konq-plugins-4.1.0-2.fc9,qt-4.4.1-2.fc9,quarticurve-kwin-theme-0.0-0.5.beta4.fc9,kdepimlibs-4.1.0-2.fc9,kdebase-workspace-4.1.0-8.fc9,akonadi-1.0.0-2.fc9,kde-l10n-4.1.0-2.fc9,kdegraphics-4.1.0-3.fc9,kdeutils-4.1.0-1.fc9.1,kdebindings-4.1.0-5.fc9,kde-i18n-3.5.9-8.fc9,kdeartwork-4.1.0-1.fc9,kdemultimedia-4.1.0-1.fc9,kdetoys-4.1.0-1.fc9,kdebase-runtime-4.1.0-1.fc9,kdeadmin-4.1.0-2.fc9,kdenetwork-4.1.0-2.fc9,kdeaccessibility-4.1.0-1.fc9,kdeplasma-addons-4.1.0-1.fc9,kdeedu-4.1.0-1.fc9,kdebase-4.1.0-1.fc9.1,kdesdk-4.1.0-1.fc9,kde-filesystem-4-17.fc9,qscintilla-2.2-3.fc9,qgtkstyle-0.0-0.2.20080719svn693.fc9,compiz-0.7.6-3.fc9.1,soprano-2.1-1.fc9,PyQt4-4.4.2-2.fc9,sip-4.7.6-1.fc9,automoc-1.0-0.8.rc1.fc9,phonon-4.2.0-2.fc9',
}
- #testutil.capture_log(['bodhi.controllers', 'bodhi.util',
'bodhi.model'])
+ testutil.capture_log(['bodhi.controllers', 'bodhi.util',
'bodhi.model'])
self.save_update(params, session)
+ testutil.print_log()
update = PackageUpdate.byTitle(params['builds'])
assert update.status == 'pending'
assert PackageUpdate.select().count() == 1
assert PackageBuild.select().count() ==
len(params['builds'].split(','))
- #testutil.print_log()
def test_revoke_request(self):
session = login()