app-generator / tutorial-django

Django Tutorial - Learn to code in Django | AppSeed
https://appseed.us/admin-dashboards/django
MIT License
0 stars 0 forks source link

Make tutorial on how make tests #1

Open periwinkleFTW opened 3 years ago

periwinkleFTW commented 3 years ago

I would like to see a tutorial on tests (mostly for CBV) that include testing UpdateViews with Forms, ModelForms, and inline formsets

imankarimi commented 3 years ago

Actually the CBV test (Class-based views: derived from Django’s generic.models.View class) contain methods and mixins which makes granular unit testing feasible. Quite often usage of a generic view class comprises a simple method override. by the way I think the topic of testing is very broad and can not be summarized in just one issue. actually I'm trying to make a doc based on my experience and R&D about testing like API test, Unit test, TDD, BDD and of course CBV. but for now please check this doc to understand CBV test I think it can be helpfull for now. After complete the doc of course we will inform you.

GitHub: replaed package