DEV Community

Petar Pilipovic
Petar Pilipovic

Posted on

4

Testing Models, ModelMangers in Django

Hello all, I'm a bit shocked on the lack of example on how to test models and model managers in Django.

I tried to found out some nice examples on this topic, and I found it a bit challenging to found it out.

For example there is this nice blog post from Brad Montgomery, also this article from Matt J Morrison and that is it, don't get me wrong they are nice but a bit outdated.

Perhaps the best one so far is this Advanced user inheritance with Django example.

I know Django provides nice documentation on how to run tests, but I like to check other people examples.

Where and how you guys found example on the testing when you need it?

Cheers.

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay