Skip to content

Commit

Permalink
Display arguments without \${}
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperCraeghs committed Apr 24, 2023
1 parent cabe71e commit d133b08
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mlx/robot_parser.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import re
from collections import namedtuple

from robot.api import get_model, Token
Expand Down Expand Up @@ -35,6 +36,9 @@ def visit_VariableSection(self, node):
if getattr(element, 'type') == Token.VARIABLE:
name = element.get_value(Token.VARIABLE)
value = ' '.join(element.get_values(Token.ARGUMENT))
match = re.fullmatch(r"\${(.+)}", value)
if match:
value = match.group(1)
self.variables[name] = value

def visit_TestCase(self, node):
Expand Down

0 comments on commit d133b08

Please sign in to comment.