Skip to content

Commit 8735749

Browse files
committed
tests: finish Bug coverage
Signed-off-by: Cole Robinson <crobinso@redhat.com>
1 parent b60617a commit 8735749

15 files changed

Lines changed: 132 additions & 14 deletions

bugzilla/bug.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
# This work is licensed under the GNU GPLv2 or later.
77
# See the COPYING file in the top-level directory.
88

9-
from __future__ import unicode_literals
10-
119
from logging import getLogger
1210

1311
from ._util import to_encoding
@@ -211,7 +209,7 @@ def close(self, resolution, dupeid=None, fixedin=None,
211209
resolution=resolution,
212210
dupe_of=dupeid,
213211
fixed_in=fixedin,
214-
status="CLOSED")
212+
status=str("CLOSED"))
215213
log.debug("close: update=%s", vals)
216214

217215
return self.bugzilla.update_bugs(self.bug_id, vals)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{'exclude_fields': 'foo', 'ids': ['CVE-1234-5678']}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{'ids': [1165434]}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{'ids': [1165434]}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{'cc': {'add': ['foo2@example.com']},
2+
'comment': {'comment': 'foocomment'},
3+
'ids': [1165434]}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{'comment': {'comment': 'test comment', 'is_private': True}, 'ids': [1165434]}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{'cf_fixed_in': '1.2.3.4.5',
2+
'comment': {'comment': 'foocomment2'},
3+
'dupe_of': 123456,
4+
'ids': [1165434],
5+
'resolution': 'UPSTREAM',
6+
'status': 'CLOSED'}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{'cc': {'remove': ['foo2@example.com']},
2+
'comment': {'comment': 'foocomment'},
3+
'ids': [1165434]}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{'assigned_to': 'foo@example.com',
2+
'comment': {'comment': 'foocomment'},
3+
'ids': [1165434],
4+
'qa_contact': 'bar@example.com'}

0 commit comments

Comments
 (0)