Commit 3e5c1405 authored by Louis's avatar Louis
Browse files

[testexo] Legacy exercie name is function name, not module.function name

parent 5d8f552b
......@@ -253,7 +253,10 @@ def do_lsexos(__options):
"""Perform the `lsexos` command."""
def iter_names():
for exo in match_exercise():
yield exo.__name__
if issubclass(exo, pyromaths.ex.LegacyExercise):
yield exo.function[0].__name__
elif issubclass(exo, pyromaths.ex.TexExercise):
yield exo.__name__
for name in sorted(iter_names()):
Supports Markdown
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