Skip to content

Commit b24b932

Browse files
authored
Remove binary literal prefixes from keyword names
Remove binary literal prefixes from keyword names
2 parents 478b02d + c5dcdc9 commit b24b932

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

robotframework_reportportal/model.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from six import text_type
22

3+
from reportportal_client.service import _convert_string
4+
35

46
class Suite(object):
57
def __init__(self, attributes):
@@ -57,13 +59,13 @@ def __init__(self, name=None, parent_type="TEST", attributes=None):
5759
self.status = attributes["status"]
5860

5961
def get_name(self):
60-
assign = ", ".join(self.assign).encode("utf8")
62+
assign = _convert_string(", ".join(self.assign))
6163
assignment = "{0} = ".format(assign) if self.assign else ""
6264
arguments = ", ".join(self.args)
6365
full_name = "{0}{1} ({2})".format(
6466
assignment,
65-
self.name.encode("utf8"),
66-
arguments.encode("utf8")
67+
_convert_string(self.name),
68+
_convert_string(arguments)
6769
)
6870
return full_name[:256]
6971

0 commit comments

Comments
 (0)