-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
19 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,29 @@ | ||
"""Tests standard tap features using the built-in SDK tests library.""" | ||
"""Tests standard tap features using the built-in SDK tests library | ||
import os | ||
Source: https://github.com/meltano/sdk/blob/main/singer_sdk/testing/tap_tests.py | ||
""" | ||
|
||
from singer_sdk.testing import get_tap_test_class | ||
import os | ||
|
||
from tap_getresponse.tap import TapGetResponse | ||
|
||
SAMPLE_CONFIG = { | ||
"auth_token": os.getenv("TAP_GETRESPONSE_AUTH_TOKEN"), | ||
} | ||
|
||
tap = TapGetResponse(config=SAMPLE_CONFIG) | ||
|
||
|
||
# Run standard built-in tap tests from the SDK: | ||
TestTapGetResponse = get_tap_test_class( | ||
tap_class=TapGetResponse, | ||
config=SAMPLE_CONFIG, | ||
) | ||
def test_tap_cli_prints() -> None: | ||
"""Test that the tap is able to print standard metadata.""" | ||
tap.print_version() | ||
tap.print_about() | ||
tap.print_about(output_format="json") | ||
|
||
|
||
# TODO: Create additional tests as appropriate for your tap. | ||
def test_tap_stream_connection() -> None: | ||
""" | ||
Test that the tap can connect to each stream. | ||
Run connection test, aborting each stream after 1 record. | ||
""" | ||
tap.run_connection_test() |