singer_sdk.testing.tap_tests.AttributeIsNumberTest

class singer_sdk.testing.tap_tests.AttributeIsNumberTest[source]

Test that a given attribute can be converted to a floating point number type.

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.

Raises:

AssertionError – if value cannot be cast to float type.

Return type:

None