r/learnpython • • 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.

4 Upvotes

16 comments sorted by

View all comments

2

u/good_name_0 Oct 21 '26

You will not learn if you use AI to work through the assignments, it's just self-sabotage. If something is insurmountably difficult, you probably need to go back a step or two.

1

u/uzuis_4thwife Oct 21 '26

Honestly, it was after my last assignment when I realized I need to drop using AI entirely. It just made me realize I had more holes in my knowledge than actually helping me. In the end, I felt brain dead and dejected. That’s exactly why I’m reaching out for help now before starting my next assignment

1

u/good_name_0 Oct 21 '26

Yeah, you might want to go back to the beginning and try to redo as many steps as possible by hand. Any kind of more advanced patterns aren't really doable without the fundamentals. You'll also want to avoid it for quite some time, at the least, in order to ensure that you truly understand and know how things work; once you're at the practice point of having them be automatic, then comprehension will be second nature.

2

u/uzuis_4thwife Oct 21 '26

I briefly mentioned it in another comment, but my midterm is basically an all-encompassing project of the calculator we’ve been working on for the past few weeks. No better time than then to restart and retrace my steps :)