Passed
Push — master ( 62d7d9...8230b1 )
by Alexander
03:29
created

tcms.issuetracker.bugzilla_integration   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 6
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A BugzillaThread.post_comment() 0 3 1
1
# -*- coding: utf-8 -*-
2
"""
3
    Helper functions which facilitate actual communications with Bugzilla.
4
"""
5
from tcms.issuetracker.base import IntegrationThread
6
7
8
class BugzillaThread(IntegrationThread):
9
    """
10
        Execute Bugzilla RPC code in a thread!
11
12
        Executed from the IssueTracker interface methods.
13
    """
14
    def post_comment(self):
15
        self.rpc.update_bugs(self.bug_id, {'comment': {'comment': self.text(),
16
                                                       'is_private': False}})
17