I am trying to find out the best way for testing admin.ModelAdmin in admin.py. Specifically I am overriding the save_model() function which I want to test. From the research I have done, the only solution I have found was writing a request/response test and then query the database.
I am trying to find out the best way for testing admin.ModelAdmin in admin.py
Share
Check out Django’s
ModelAdminTestsfor examples.