Fix: column check in get_exam_questions
This commit is contained in:
parent
9e0ea14d05
commit
a8b2ac455d
@ -161,7 +161,8 @@ class CSVLoader(Loader):
|
|||||||
:example:
|
:example:
|
||||||
>>> loader = CSVLoader("./test_config.yml")
|
>>> loader = CSVLoader("./test_config.yml")
|
||||||
>>> exams = loader.get_exams(["Tribe1"])
|
>>> exams = loader.get_exams(["Tribe1"])
|
||||||
>>> all(loader.get_exam_questions([exams.iloc[0]]).columns == loader.score_columns)
|
>>> all(loader.get_exam_questions([exams.iloc[0]]).columns == loader.question_columns)
|
||||||
|
True
|
||||||
>>> questions = loader.get_exam_questions(exams)
|
>>> questions = loader.get_exam_questions(exams)
|
||||||
>>> questions.iloc[0]
|
>>> questions.iloc[0]
|
||||||
exercise Exercice 1
|
exercise Exercice 1
|
||||||
|
Loading…
Reference in New Issue
Block a user