-
Notifications
You must be signed in to change notification settings - Fork 22.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FeatureRequest with "Django Tutorial Part 10: Testing a Django web appl…": add a unit test for Admin-Site "action" #1915
Comments
@ifrh Thanks for posting this. Yes, that could be interesting as it isn't documented properly anywhere - including in Django docs. Some resources from around the place to help with this:
Would you like to take it on? (I might look at this, but not necessarily any time soon!) |
@hamishwillee Thanks for your pointers :)
Just now I found https://stackoverflow.com/a/54799934 and https://stackoverflow.com/a/29027215 which are answers to "Testing custom admin actions in django". There (https://stackoverflow.com/a/29027215) it is written: And https://stackoverflow.com/a/54799934 gives a more or less complete example. But for learning in contrast to copy and modify there are to few things that are explained. |
classes-static: Show class static initialization block
MDN URL: https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Testing
A great overview of testing with python django ! Thank you very much.
What information was incorrect, unhelpful, or incomplete?
No example is given for writing a unit test which should test a "action" from admin site list views.
Proposed section or headline
Testing actions from admin site list views
What did you expect to see?
It would be very great, if there is a small example how to write a unit test for actions on admin site list views.
MDN Content page report details
en-us/learn/server-side/django/testing
The text was updated successfully, but these errors were encountered: