This is my first Django Project. In my admin.py file I have defined fields and search_fields. I am wondering how I can write test cases to validate these.
Code snippet:
class CategoryAdmin(admin.ModelAdmin):
fields = ['name']
search_fields = ['name']
Is it required to have unit test cases for these things?
Aucun commentaire:
Enregistrer un commentaire