Skip to content

Commit

Permalink
Merge pull request #22 from meshcloud/feature/sales_orders
Browse files Browse the repository at this point in the history
test: limit number of records to speed up test runs
  • Loading branch information
JohannesRudolph authored Aug 9, 2024
2 parents c5d2b3e + 18f25e6 commit 74cf1b6
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import datetime
import json

from singer_sdk.testing import get_tap_test_class
from singer_sdk.testing import SuiteConfig, get_tap_test_class

from tap_younium.tap import TapYounium

Expand All @@ -14,11 +14,16 @@
with open(config_path, 'r') as file:
SAMPLE_CONFIG = json.load(file)


# aggressively limit the number of records to limit the number of child stream fetches and reduce
# overall number of API requests for a test run
TEST_SUITE_CONFIG = SuiteConfig(
max_records_limit=2
)

# Run standard built-in tap tests from the SDK:
TestTapYounium = get_tap_test_class(
tap_class=TapYounium,
config=SAMPLE_CONFIG,
suite_config = TEST_SUITE_CONFIG
)


# TODO: Create additional tests as appropriate for your tap.

0 comments on commit 74cf1b6

Please sign in to comment.