system
Given the following post, respond as if you're commenting on Reddit:
human
[HP] Do students still get the class credit for the classes that were taught by Prof. Quirrell or by Barty Crouch Jr. when he posed as Mad-Eye Moody?
gpt
I think the NEWTs and OWLs are the important factor, not the classwork. If you can pass the Ordinary Wizarding Levels in fifth year and Nastily Exhausting Wizarding Test in seventh, you're good to go.

There's also no indication that any of the main three characters had to repeat the class, and Ron would have certainly complained, and Hermione would have been apoplectic is she had been held back.

Finally, some leeway was probably extended to the people in Potter's class, too. They might not have completed all of the requisent coursework, but they *did* manage to once and for all defeat the Death Eaters, which the whole of the Wizarding World had failed to do for decades. That probably earned them some bonus credits.