Skip to content

Strip first 6 chars only if ishtml value is true #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/oxygen/robot_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,9 @@ def spawn_robot_keyword(self,
for message in messages:
if message:
ishtml = message.startswith('*HTML*')
robot_keyword.messages.append(RobotResultMessage(message[6:],html=ishtml))
if ishtml:
message = message[6:]
robot_keyword.messages.append(RobotResultMessage(message,html=ishtml))

return robot_keyword

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ def test_result_build_suites(self):
self.assertIsInstance(message, RobotMessage)
self.assertEqual(converted[0].tests[3].keywords[0].messages[0].html, True)
self.assertEqual(converted[0].tests[3].keywords[0].messages[0].message, ' <a href="http://robotframework.org">Robot Framework</a>')
self.assertEqual(converted[0].tests[2].keywords[0].messages[0].message,'FAIL: Example failure message '
'(the_failure_type)' )
self.assertEqual(converted[0].tests[2].keywords[0].messages[0].html, False)

def test_result_create_wrapper_keyword_for_setup(self):
Expand Down