singer_sdk.testing.tap_tests.AttributeIsBooleanTest

class singer_sdk.testing.tap_tests.AttributeIsBooleanTest[source]

Test an attribute is of boolean datatype (or can be cast to it).

classmethod evaluate(stream, property_name, property_schema)[source]

Determine if this attribute test is applicable to the given property.

Parameters:
  • stream (Stream) – Parent Stream of given attribute.

  • property_name (str) – Name of given attribute.

  • property_schema (dict) – JSON Schema of given property, in dict form.

Returns:

True if this test is applicable, False if not.

Return type:

bool

test()[source]

Run test.

Return type:

None