def test_bugReport(): from bugreporter.util.bugReport import BugReport from bugreporter.util.initBz import initBugzilla from bugreporter.util import packageInfo data = {'assigned_to': '*****@*****.**', 'cc': [], 'component': 'GNOME', 'description': 'Package: rhythmbox\nProject: openSUSE:11.4\nVersion: 0.13.3-5.1\nApiurl: https://api.opensuse.org\nSummary: [rhythmbox] testing\nProduct: openSUSE 11.4\nPlatform: x86-64\nComponent: GNOME\nSeverity: Normal\nAssigned to: [email protected]\nCC: \n\n\ntest desc\n', 'product': 'openSUSE 11.4', 'rep_platform': 'x86-64', 'severity': 'Normal', 'summary': '[rhythmbox] testing', 'version': 'Final'} bz = initBugzilla() pkg_info = packageInfo.getInfo('rhythmbox') bug = BugReport(bz, 'rhythmbox', pkg_info, 'test', data) assert bug.apiurl == pkg_info[1]
def test_bugReport(): from bugreporter.util.bugReport import BugReport from bugreporter.util.initBz import initBugzilla from bugreporter.util import packageInfo data = { 'assigned_to': '*****@*****.**', 'cc': [], 'component': 'GNOME', 'description': 'Package: rhythmbox\nProject: openSUSE:11.4\nVersion: 0.13.3-5.1\nApiurl: https://api.opensuse.org\nSummary: [rhythmbox] testing\nProduct: openSUSE 11.4\nPlatform: x86-64\nComponent: GNOME\nSeverity: Normal\nAssigned to: [email protected]\nCC: \n\n\ntest desc\n', 'product': 'openSUSE 11.4', 'rep_platform': 'x86-64', 'severity': 'Normal', 'summary': '[rhythmbox] testing', 'version': 'Final' } bz = initBugzilla() pkg_info = packageInfo.getInfo('rhythmbox') bug = BugReport(bz, 'rhythmbox', pkg_info, 'test', data) assert bug.apiurl == pkg_info[1]
def test_bz(): from bugreporter.util.initBz import initBugzilla bz = initBugzilla()