Remove CasperJS api-batch-tests.js - already available in API test framework.

This commit is contained in:
John Chilton
2016-11-30 17:44:12 -05:00
parent 82728df155
commit 9b0390defb
2 changed files with 0 additions and 93 deletions
-10
View File
@@ -1,13 +1,9 @@
import json
import logging
import pprint
from requests import post
from base import api
log = logging.getLogger( "functional_tests.py" )
class ApiBatchTestCase( api.ApiTestCase ):
@@ -22,9 +18,6 @@ class ApiBatchTestCase( api.ApiTestCase ):
data = json.dumps({ "batch" : batch })
return post( "%s/batch" % ( self.galaxy_interactor.api_url ), data=data )
def _log_reponse( self, response ):
log.debug( 'RESPONSE %s\n%s', ( '-' * 40 ), pprint.pformat( response ) )
# ---- tests
def test_simple_array( self ):
batch = [
@@ -35,7 +28,6 @@ class ApiBatchTestCase( api.ApiTestCase ):
]
response = self._post_batch( batch )
response = response.json()
# self._log_reponse( response )
self.assertIsInstance( response, list )
self.assertEquals( len( response ), 3 )
@@ -65,7 +57,6 @@ class ApiBatchTestCase( api.ApiTestCase ):
]
response = self._post_batch( batch )
response = response.json()
# self._log_reponse( response )
self.assertIsInstance( response, list )
self.assertEquals( response[0][ 'status' ], 400 )
self.assertEquals( response[1][ 'status' ], 501 )
@@ -83,7 +74,6 @@ class ApiBatchTestCase( api.ApiTestCase ):
]
response = self._post_batch( batch )
response = response.json()
self._log_reponse( response )
self.assertEquals( len( response ), 2 )
self.assertEquals( len( response[0][ 'body' ].keys() ), 2 )
self.assertEquals( response[1][ 'body' ], [] )