Skip to content

Commit 813f564

Browse files
committed
tests: rw: Remove function with only one user
Just open code it Signed-off-by: Cole Robinson <[email protected]>
1 parent 6b3be48 commit 813f564

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

tests/test_rw_functional.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -835,20 +835,15 @@ def test13SubComponents():
835835
"Default / Unclassified (RHEL5)"]}
836836

837837

838-
def _deleteAllExistingExternalTrackers(bugid):
839-
bz = _open_bz()
840-
ids = [bug['id'] for bug in bz.getbug(bugid).external_bugs]
841-
if ids != []:
842-
bz.remove_external_tracker(ids=ids)
843-
844-
845838
def test14ExternalTrackersAddUpdateRemoveQuery():
846839
bz = _open_bz()
847840
bugid = 461686
848841
ext_bug_id = 380489
849842

850843
# Delete any existing external trackers to get to a known state
851-
_deleteAllExistingExternalTrackers(bugid)
844+
ids = [bug['id'] for bug in bz.getbug(bugid).external_bugs]
845+
if ids != []:
846+
bz.remove_external_tracker(ids=ids)
852847

853848
url = "https://bugzilla.mozilla.org"
854849
if bz.bz_ver_major < 5:

0 commit comments

Comments
 (0)