Use unicode for strings in TestRail statistics

Change-Id: Id6a0a9e7a8133ff7daf66ae17411843170ea5113
Closes-bug: #1567241
This commit is contained in:
Alexey Stepanov 2016-04-07 14:40:09 +03:00 committed by Artem Panchenko
parent a5469cd6d3
commit 2f3179f86e

View File

@ -12,6 +12,8 @@
# License for the specific language governing permissions and limitations
# under the License.
from __future__ import unicode_literals
from launchpadlib.launchpad import Launchpad
@ -26,12 +28,14 @@ class LaunchpadBug(object):
@property
def targets(self):
return [{'project': str(task.bug_target_name).split('/')[0],
'milestone': str(task.milestone).split('/')[-1],
'status': str(task.status),
'importance': str(task.importance),
'title': str(task.title),
} for task in self.bug_tasks]
return [
{
'project': task.bug_target_name.split('/')[0],
'milestone': str(task.milestone).split('/')[-1],
'status': task.status,
'importance': task.importance,
'title': task.title,
} for task in self.bug_tasks]
def get_duplicate_of(self):
bug = self.bug