singer_sdk.testing.templates.AttributeTestTemplate¶
- class singer_sdk.testing.templates.AttributeTestTemplate[source]¶
Base Tap Stream Attribute template.
- classmethod evaluate(stream, property_name, property_schema)[source]¶
Determine if this attribute test is applicable to the given property.
- Parameters:
- Raises:
NotImplementedError – if not implemented.
- Return type:
- run(config, resource, runner, stream, attribute_name)[source]¶
Test main run method.
- Parameters:
config (SuiteConfig) – SuiteConfig instance, to use for test.
resource (t.Any) – A generic external resource, provided by a pytest fixture.
runner (TapTestRunner) – A Tap runner instance, to use with this test.
stream (Stream) – A Tap Stream instance, to use with this test. to use with this test.
attribute_name (str) – The name of the attribute to test.
- Return type:
None