Use unicode for strings in TestRail statistics
Change-Id: Id6a0a9e7a8133ff7daf66ae17411843170ea5113 Closes-bug: #1567241
This commit is contained in:
parent
a5469cd6d3
commit
2f3179f86e
@ -12,6 +12,8 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from launchpadlib.launchpad import Launchpad
|
from launchpadlib.launchpad import Launchpad
|
||||||
|
|
||||||
|
|
||||||
@ -26,11 +28,13 @@ class LaunchpadBug(object):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def targets(self):
|
def targets(self):
|
||||||
return [{'project': str(task.bug_target_name).split('/')[0],
|
return [
|
||||||
|
{
|
||||||
|
'project': task.bug_target_name.split('/')[0],
|
||||||
'milestone': str(task.milestone).split('/')[-1],
|
'milestone': str(task.milestone).split('/')[-1],
|
||||||
'status': str(task.status),
|
'status': task.status,
|
||||||
'importance': str(task.importance),
|
'importance': task.importance,
|
||||||
'title': str(task.title),
|
'title': task.title,
|
||||||
} for task in self.bug_tasks]
|
} for task in self.bug_tasks]
|
||||||
|
|
||||||
def get_duplicate_of(self):
|
def get_duplicate_of(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user