Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#11253 closed (fixed)

TestCase method docs should consistently use TestCase.methodName

Reported by: Chris Beaven Owned by: nobody
Component: Documentation Version: master
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Currently we have:

TestCase.assertContains(response, text, count=None, status_code=200)
TestCase.assertNotContains(response, text, status_code=200)
assertFormError(response, form, field, errors)
assertTemplateUsed(response, template_name)
assertTemplateNotUsed(response, template_name)
assertRedirects(response, expected_url, status_code=302, target_status_code=200)

They're all TestCase methods so they should all be either with or without the TestCase. prefix (I say with)

Attachments (1)

11253.diff (2.2 KB) - added by Chris Beaven 7 years ago.

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by Chris Beaven

Attachment: 11253.diff added

comment:1 Changed 7 years ago by Chris Beaven

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedReady for checkin

comment:2 Changed 7 years ago by Russell Keith-Magee

Resolution: fixed
Status: newclosed

(In [11051]) Fixed #11253 -- Normalized the way the docs refer to TestCase.assert* methods. Thanks to SmileyChris for the report and patch.

comment:3 Changed 7 years ago by Russell Keith-Magee

(In [11063]) [1.0.X] Fixed #11253 -- Normalized the way the docs refer to TestCase.assert* methods. Thanks to SmileyChris for the report and patch.

Merge of r11051 from trunk.

Note: See TracTickets for help on using tickets.
Back to Top