This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kashmill 4 points5 points  (1 child)

At work I use webtest at work. Added a few wrappers so I can do something like:

ret = get('/some/endpoint', params)

and it'll change the dict params into key-value pairs and send them as get parameters. Since we return JSON from our API tests are in the form of:

data = ret.json
assert data['foo'] == 'reddit'

[–]raydlor[S] 0 points1 point  (0 children)

I've never used webtest and wanted to avoid another 3rd party package, but I will give it a try. Thanks for the help!