Django Chat cover image

Test and Code - Brian Okken

Django Chat

00:00

How to Test a Form Post View in Django

Mitchell: Django ships some test cases which are based on unit tests. So you normally in your test set, you'd run to define a setup function and that's where you do your fixtures. And the Django test case, test cases, we're right to nice assertions like a certain query set is equal to or certain that I don't know a warning message was raised or certain read that a redirect to a certain URL or Great. Mitchell: You arrange what you want in the test case and then you do some actions and then you assert that it was.

Play episode from 28:09
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app