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

BugzillaThread.post_comment()   A

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nop 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