Closed Bug 723393 Opened 13 years ago Closed 13 years ago

use WebTest's put_json() and post_json() methods

Categories

(Cloud Services Graveyard :: Server: Sync, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: rfkelly, Unassigned)

Details

(Whiteboard: [qa-])

Attachments

(1 file)

Current test code uses app.put() and app.post() and winds up sending JSON data with a content-type of "application/x-www-form-urlencoded". This breaks OAuth signature calculation. Attached patch changes it to use the put_json() and post_json() convenience methods, which do the right thing in less code.
Attachment #593714 - Flags: review?(telliott)
Comment on attachment 593714 [details] [diff] [review] patch to use put_json() and post_json() methods Nice. Much cleaner.
Attachment #593714 - Flags: review?(telliott) → review+
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [qa-]
Tests are running.
Status: RESOLVED → VERIFIED
Product: Cloud Services → Cloud Services Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: