samedi 5 décembre 2015

Django testing method, fixture or mock?

In my project, I use pytest to write unit test cases for my program. But later I find I there are many db operation, ORM stuff in my program.

I known unit-testing should be run fast, but what is the different between unit-testing and auto integration-testing except fast.

Should I just use the database fixture instead of mocking them?

Aucun commentaire:

Enregistrer un commentaire