def test_API_coverage(api, operation):
    """
    Tests if API class supports all operations which are in the official WSDL
    from Amazon.
    """
    attr = convert_camel_case(operation)
    assert hasattr(api, attr), 'API does not support %s!' % operation
Example #2
0
def test_API_coverage(api, operation):
    """
    Tests if API class supports all operations which are in the official WSDL
    from Amazon.
    """
    attr = convert_camel_case(operation)
    assert hasattr(api, attr), 'API does not support %s!' % operation
def test_API_coverage(api, operation):
    """
    Tests if API class supports all operations which are in the official WSDL
    from Amazon.
    """
    # a few operations are not yet implemented!
    notyetimpltd = 'SellerLookup SellerListingLookup SellerListingSearch'
    if operation in notyetimpltd.split():
        pytest.xfail('Not yet fully implemented!')

    attr = convert_camel_case(operation)
    assert hasattr(api, attr), 'API does not support %s!' % operation
 def test_calling_deprecated_operations(self, api):
     for operation in self.DEPRECATED_OPERATIONS:
         method = getattr(api, utils.convert_camel_case(operation))
         pytest.raises(DeprecatedOperation, method)
 def test_calling_deprecated_operations(self, api):
     for operation in self.DEPRECATED_OPERATIONS:
         method = getattr(api, utils.convert_camel_case(operation))
         pytest.raises(DeprecatedOperation, method)