r/learnpython • u/uzuis_4thwife • Oct 21 '26
Need help with building tests and understanding OOP design patterns
I am a post-bacc student currently in a Python for Web API online course. We just wrapped up our calculator application unit, where we learned how to build comprehensive dynamic tests using OOP design patterns. However, I finished the unit a lot more lost than when I started. Building parameterized tests still puzzles me, especially whenever I'm building the majority of a test from scratch rather than fixing minor errors in the code. Even when I do use AI to help me work through my assignments, none of it really sticks. Most of the time, I feel like I'm copying and pasting code whenever mine is incorrect and not really learning.
What are resources that you all would recommend for learning how to build application tests and files with OOP concepts? Any online resources with interactive, hands-on lessons would be greatly appreciated.
View all comments
Show parent comment
1
u/DimensionMost8342 Oct 21 '26
Fair, that's cleaner than how I put it. Honestly that @ line covers most of it: once you see @decorator as "call this function with the thing underneath and use what comes back," @fixture and @parametrize aren't separate things to memorize anymore. I kept it out of the OP mainly because I didn't want to scare off anyone who hadn't hit @ yet, but I'm stealing it.