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