singer_sdk.testing.factory.get_tap_test_class¶
- singer_sdk.testing.factory.get_tap_test_class(tap_class, *, config=None, include_tap_tests=True, include_stream_tests=True, include_stream_attribute_tests=True, custom_suites=None, suite_config=None, **kwargs)[source]¶
Get Tap Test Class.
- Parameters:
tap_class (type[Tap]) – Meltano Singer SDK Tap class to test.
config (dict | None) – Config dict to use for testing.
include_tap_tests (bool) – Include tap tests.
include_stream_tests (bool) – Include Tap stream tests.
include_stream_attribute_tests (bool) – Include Tap stream attribute tests.
custom_suites (list | None) – Custom test suites to add to standard tests.
suite_config (SuiteConfig | None) – SuiteConfig instance to pass to tests.
kwargs (t.Any) – Keyword arguments to pass to the TapRunner.
- Returns:
A test class usable by pytest.
- Return type:
type[BaseTestClass]