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.

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay