mirror of
https://github.com/django/django.git
synced 2025-03-12 10:22:37 +00:00
Captured stderr during admin_docs test.
The admindocs app doesn't pass a log level to docutils when it parses reStructured Text, so system messages can be logged during parsing.
This commit is contained in:
parent
330d89d4fe
commit
9a71eca64b
@ -509,6 +509,7 @@ class TestModelDetailView(TestDataMixin, AdminDocsTestCase):
|
||||
codename="change_person", content_type=person_content_type
|
||||
)
|
||||
staff_user.user_permissions.add(view_company, change_person)
|
||||
with captured_stderr():
|
||||
response_for_person = self.client.get(person_url)
|
||||
response_for_company = self.client.get(company_url)
|
||||
# View or change permission grants access.
|
||||
|
Loading…
x
Reference in New Issue
Block a user