| |
@@ -1,11 +1,11 @@
|
| |
- from bunch import Bunch
|
| |
+ from munch import Munch
|
| |
from copy import deepcopy
|
| |
from blockerbugs.util.update_sync import UpdateSync
|
| |
from mock import MagicMock
|
| |
from datetime import datetime
|
| |
|
| |
|
| |
- basicupdate = Bunch(
|
| |
+ basicupdate = Munch(
|
| |
approved=None,
|
| |
close_bugs=True,
|
| |
critpath=False,
|
| |
@@ -22,10 +22,10 @@
|
| |
unstable_karma=-3,
|
| |
updateid=u'FEDORA-2012-13902',
|
| |
url=u'https://bodhi.stg.fedoraproject.org/FEDORA-2012-13902',
|
| |
- bugs=[Bunch(bug_id=856836, parent=False, security=False,
|
| |
+ bugs=[Munch(bug_id=856836, parent=False, security=False,
|
| |
title=u'/etc/fstab is not written correctly after live install (F18 Alpha RC2+)')],
|
| |
- builds=[Bunch(nvr=u'anaconda-18.6.8-1.fc18',
|
| |
- package=Bunch(
|
| |
+ builds=[Munch(nvr=u'anaconda-18.6.8-1.fc18',
|
| |
+ package=Munch(
|
| |
committers=[u'anaconda-maint', u'dlehman', u'jkeating',
|
| |
u'bcl', u'clumens', u'rvykydal', u'akozumpl',
|
| |
u'pjones',
|
| |
@@ -34,44 +34,44 @@
|
| |
name=u'anaconda',
|
| |
suggest_reboot=False))],
|
| |
comments=[
|
| |
- Bunch(anonymous=False, author=u'bodhi', group=None,
|
| |
+ Munch(anonymous=False, author=u'bodhi', group=None,
|
| |
karma=0,
|
| |
text=u'This update has been submitted for testing by bcl. ',
|
| |
timestamp=u'2012-09-12 23:43:24',
|
| |
update_title=u'anaconda-18.6.8-1.fc18'),
|
| |
- Bunch(anonymous=False, author=u'autoqa', group=None,
|
| |
+ Munch(anonymous=False, author=u'autoqa', group=None,
|
| |
karma=0,
|
| |
text=u'AutoQA: depcheck test PASSED on x86_64. Result log:\nhttp://autoqa.fedoraproject.org/report/em84 (results are informative only)',
|
| |
timestamp=u'2012-09-13 00:14:41',
|
| |
update_title=u'anaconda-18.6.8-1.fc18'),
|
| |
- Bunch(anonymous=False, author=u'autoqa', group=None,
|
| |
+ Munch(anonymous=False, author=u'autoqa', group=None,
|
| |
karma=0,
|
| |
text=u'AutoQA: depcheck test PASSED on i386. Result log:\nhttp://autoqa.fedoraproject.org/report/emcl (results are informative only)',
|
| |
timestamp=u'2012-09-13 00:30:53',
|
| |
update_title=u'anaconda-18.6.8-1.fc18'),
|
| |
- Bunch(anonymous=False, author=u'jkeating',
|
| |
+ Munch(anonymous=False, author=u'jkeating',
|
| |
group=u'proventesters', karma=1,
|
| |
text=u'While I did not test the above bug, I have tested anaconda in a number of other\nscenarios and it performs as expected.',
|
| |
timestamp=u'2012-09-13 06:27:03',
|
| |
update_title=u'anaconda-18.6.8-1.fc18'),
|
| |
- Bunch(anonymous=False, author=u'bodhi', group=None,
|
| |
+ Munch(anonymous=False, author=u'bodhi', group=None,
|
| |
karma=0,
|
| |
text=u'This update is currently being pushed to the Fedora 18 testing updates repository.',
|
| |
timestamp=u'2012-09-13 15:58:32',
|
| |
update_title=u'anaconda-18.6.8-1.fc18'),
|
| |
- Bunch(anonymous=False, author=u'bodhi', group=None,
|
| |
+ Munch(anonymous=False, author=u'bodhi', group=None,
|
| |
karma=0,
|
| |
text=u'This update has been pushed to testing',
|
| |
timestamp=u'2012-09-13 16:44:30',
|
| |
update_title=u'anaconda-18.6.8-1.fc18')],
|
| |
- nagged=Bunch(
|
| |
+ nagged=Munch(
|
| |
test_cases=[
|
| |
u'QA:Testcase Anaconda autopart install',
|
| |
u'QA:Testcase Anaconda User Interface Graphical',
|
| |
u'QA:Testcase Boot Methods Pxeboot',
|
| |
u'QA:Testcase install repository Live Image',
|
| |
]),
|
| |
- release=Bunch(dist_tag=u'f18', id_prefix=u'FEDORA',
|
| |
+ release=Munch(dist_tag=u'f18', id_prefix=u'FEDORA',
|
| |
locked=True,
|
| |
long_name=u'Fedora 18', name=u'F18')
|
| |
)
|
| |
@@ -179,7 +179,7 @@
|
| |
assert updateinfo['date_pushed_stable'] == None
|
| |
|
| |
def test_extract_bug_single(self):
|
| |
- ref_bugs = [Bunch(bug_id=123456, parent=False, security=False,
|
| |
+ ref_bugs = [Munch(bug_id=123456, parent=False, security=False,
|
| |
title=u'First wonderful test bug')
|
| |
]
|
| |
self.testupdate.bugs = ref_bugs
|
| |
@@ -191,11 +191,11 @@
|
| |
|
| |
def test_extract_bug_multiple(self):
|
| |
ref_bugs = [
|
| |
- Bunch(bug_id=123456, parent=False, security=False,
|
| |
+ Munch(bug_id=123456, parent=False, security=False,
|
| |
title=u'First wonderful test bug'),
|
| |
- Bunch(bug_id=234567, parent=False, security=False,
|
| |
+ Munch(bug_id=234567, parent=False, security=False,
|
| |
title=u'Second wonderful test bug'),
|
| |
- Bunch(bug_id=345678, parent=False, security=False,
|
| |
+ Munch(bug_id=345678, parent=False, security=False,
|
| |
title=u'Third wonderful test bug'),
|
| |
]
|
| |
self.testupdate.bugs = ref_bugs
|
| |
Munch is a Bunch-compatible replacement with Python 3 Support, and works also in Python 2.