Skip to content

Commit

Permalink
Add a test for verified bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakub-vavra-cz committed Feb 27, 2019
1 parent a85ccf1 commit ed1193f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions tests/plugins/test_bugzilla.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,30 @@ def test_bugzilla_closed():
"--until", "2012-12-06"])[0][0].stats[0].stats[8].stats
assert any([bug.id == 862231 for bug in stats])
assert any(["[duplicate]" in unicode(bug) for bug in stats])

# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Verified Bugs
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

def test_bugzilla_verified_chagedby():
""" Check verified bugs based on changedby"""
did.base.Config(CONFIG)
stats = did.cli.main([
"--bz-verified",
"--email", "<jvavra@redhat.com>",
"--since", "2018-03-26",
"--until", "2018-03-27"])[0][0].stats[0].stats[5].stats
# Bug changed by user
assert any([bug.id == 1527935 for bug in stats])

def test_bugzilla_verified_qecontact():
""" Check verified bugs based on qe contact"""
did.base.Config(CONFIG)
stats = did.cli.main([
"--bz-verified",
"--email", "<desktop-qa-list@redhat.com>",
"--since", "2019-02-06",
"--until", "2019-02-08"])[0][0].stats[0].stats[5].stats
# Bug changed by user
assert any([bug.id == 1666809 for bug in stats])

0 comments on commit ed1193f

Please # to comment.