Use the context manager version of assertRaises decorators where appropriate
rewrite below django admin register decorator test in context manager version:
- test_wrapped_class_not_a_model_admin
- test_custom_site_not_an_admin_site
Change History
(8)
Component: |
Uncategorized → Testing framework
|
Owner: |
changed from nobody to Hasan Ramezani
|
Status: |
new → assigned
|
Patch needs improvement: |
set
|
Summary: |
rewrite django admin register decorator some test → Use the context manager version of assertRaises decorators where appropriate
|
Triage Stage: |
Unreviewed → Accepted
|
Version: |
1.9 → master
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Pull request: https://github.com/django/django/pull/5995