Public
Authored by Jérome Perrin

Rewrite activate() calls to pass activity=SQLDict explicitly

Edited
rewrite_activate_default_activity_SQLDict.py 1.04 KB
  • dirty patch we could use to keep the trailing ,

    
    diff --git a/bowler/imr.py b/bowler/imr.py
    index 8731e19..b36b10d 100644
    --- a/bowler/imr.py
    +++ b/bowler/imr.py
    @@ -235,6 +235,8 @@ class FunctionSpec:
                 )
     
             if arguments:
    +            if self.capture['function_arguments'][0].children[-1].value == ',':
    +                arguments.append_child(self.capture['function_arguments'][0].children[-1])
                 parameters.insert_child(1, arguments)
     
             self.capture["function_parameters"].replace(parameters)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment