Skip to content

Commit

Permalink
Merge branch 'issue-32871/test_application_fees' into issue-32871/tes…
Browse files Browse the repository at this point in the history
…t_other_incremental_stripe_stream
  • Loading branch information
maxi297 authored Dec 18, 2023
2 parents 9605ead + d497112 commit 5c95940
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.

import json

from airbyte_cdk.test.mock_http import HttpResponse
from airbyte_cdk.test.mock_http.response_builder import find_template

Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import json

import freezegun
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.

import json
from datetime import datetime, timedelta, timezone
from typing import Any, Dict, Optional
from unittest import TestCase

import freezegun
from airbyte_cdk.test.catalog_builder import CatalogBuilder
from airbyte_cdk.test.state_builder import StateBuilder
from airbyte_cdk.test.entrypoint_wrapper import read, EntrypointOutput
from airbyte_cdk.test.entrypoint_wrapper import EntrypointOutput, read
from airbyte_cdk.test.mock_http import HttpMocker, HttpRequest, HttpResponse

from airbyte_cdk.test.mock_http.response_builder import (
FieldPath,
HttpResponseBuilder,
Expand All @@ -20,13 +18,13 @@
create_response_builder,
find_template,
)
from airbyte_cdk.test.state_builder import StateBuilder
from airbyte_protocol.models import ConfiguredAirbyteCatalog, FailureType, SyncMode
from source_stripe import SourceStripe
from integration.config import ConfigBuilder
from integration.pagination import StripePaginationStrategy
from integration.request_builder import StripeRequestBuilder
from integration.response_builder import a_response_with_status

from source_stripe import SourceStripe

_EVENT_TYPES = ["application_fee.created", "application_fee.refunded"]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"error": {
"message": "Invalid API Key provided: sk_test_*****************************************************mFeM",
"type": "invalid_request_error"
}
"error": {
"message": "Invalid API Key provided: sk_test_*****************************************************mFeM",
"type": "invalid_request_error"
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"error": {
"message": "Request rate limit exceeded. Learn more about rate limits here https://stripe.com/docs/rate-limits.",
"type": "invalid_request_error",
"code": "rate_limit",
"doc_url": "https://stripe.com/docs/error-codes/rate-limit"
}
"error": {
"message": "Request rate limit exceeded. Learn more about rate limits here https://stripe.com/docs/rate-limits.",
"type": "invalid_request_error",
"code": "rate_limit",
"doc_url": "https://stripe.com/docs/error-codes/rate-limit"
}
}
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
{"unknown": "maxi297: I could not reproduce the issue hence this response will not look like the actual 500 status response"}
{
"unknown": "maxi297: I could not reproduce the issue hence this response will not look like the actual 500 status response"
}

0 comments on commit 5c95940

Please sign in to comment.