API, batch: update docs and test, cleanup

This commit is contained in:
carlfeberhard
2016-07-29 10:59:12 -04:00
parent 15a686e316
commit ff26129667
2 changed files with 43 additions and 13 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ class ApiBatchTestCase( api.ApiTestCase ):
def test_errors( self ):
batch = [
dict( url=self._with_key( '/api/histories/abc123' ) ),
dict( url=self._with_key( '/api/users/123' ), method='PUT' ),
dict( url=self._with_key( '/api/jobs' ), method='POST', body=json.dumps( dict( name='Wat' ) ) ),
]
response = self._post_batch( batch )
response = response.json()