Ejemplo n.º 1
0
def test_refund_not_found():

    with pytest.raises(RefundNotFound):
        raise get_api_exception({
            "exception": "refund_not_found",
            "error": "Foo"
        })
Ejemplo n.º 2
0
def test_webhook_not_found():

    with pytest.raises(WebhookNotFound):
        raise get_api_exception({
            "exception": "webhook_not_found",
            "error": "Foo"
        })
Ejemplo n.º 3
0
def test_transaction_not_found():

    with pytest.raises(TransactionNotFound):
        raise get_api_exception({
            "exception": "transaction_not_found",
            "error": "Foo"
        })
Ejemplo n.º 4
0
def test_preauthorization_not_found():

    with pytest.raises(PreauthorizationNotFound):
        raise get_api_exception({
            "exception": "preauthorization_not_found",
            "error": "Foo"
        })
Ejemplo n.º 5
0
def test_offer_not_found():

    with pytest.raises(OfferNotFound):
        raise get_api_exception({
            "exception": "offer_not_found",
            "error": "Foo"
        })
Ejemplo n.º 6
0
def test_not_found_payment():

    with pytest.raises(PaymentNotFound):
        raise get_api_exception({
            "exception": "not_found_payment",
            "error": "Foo"
        })
Ejemplo n.º 7
0
def test_client_not_found():

    with pytest.raises(ClientNotFound):
        raise get_api_exception({
            "exception": "client_not_found",
            "error": "Foo"
        })
Ejemplo n.º 8
0
def test_subscription_not_found():

    with pytest.raises(SubscriptionNotFound):
        raise get_api_exception({
            "exception": "subscription_not_found",
            "error": "Foo"
        })
Ejemplo n.º 9
0
def test_token_not_found():

    with pytest.raises(TokenNotFound):
        raise get_api_exception({
            "exception": "token_not_found",
            "error": "Foo"
        })
Ejemplo n.º 10
0
def test_subscription_already_connected():

    with pytest.raises(SubscriptionAlreadyConnected):
        raise get_api_exception({
            "exception": "subscription_already_connected",
            "error": "Foo"
        })
Ejemplo n.º 11
0
def test_api_exception():

    with pytest.raises(APIException):
        raise get_api_exception({"exception": "Foo", "error": "bar"})