Fix: column check in get_exam_questions

This commit is contained in:
Bertrand Benjamin 2021-04-18 17:23:37 +02:00
parent 9e0ea14d05
commit a8b2ac455d

View File

@ -161,7 +161,8 @@ class CSVLoader(Loader):
:example:
>>> loader = CSVLoader("./test_config.yml")
>>> 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.iloc[0]
exercise Exercice 1