You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For exception tests in Otter Assign, test cells are formatted like
deftest(var):
# some logictest(var) # IGNORE
Needing to remember the # IGNORE comment is cumbersome. Since each cell should have only 1 test in it, we can parse the cell and remove all lines outside the function body.
The text was updated successfully, but these errors were encountered:
This can probably be done by parsing the cell's source as an AST, removing all nodes except the first def node, and using astunparse to convert this back to Python code.
For exception tests in Otter Assign, test cells are formatted like
Needing to remember the
# IGNORE
comment is cumbersome. Since each cell should have only 1 test in it, we can parse the cell and remove all lines outside the function body.The text was updated successfully, but these errors were encountered: