Module ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str Str decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr Dict Str Str Str Str attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad TupleLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpSub Call AttributeLoad NameLoad attr Call NameLoad keyword Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Str Str Assign NameStore Call AttributeLoad BinOpSub Call AttributeLoad NameLoad attr Call NameLoad keyword Num attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Num decorator_list decorator_list
N/A datetime datetime timedelta django.test SimpleTestCase corehq.apps.userreports.exceptions BadSpecError corehq.apps.userreports.transforms.factory TransformFactory corehq.apps.userreports.transforms.specs CustomTransform corehq.util.test_utils generate_cases TransformFactoryTest N/A SimpleTestCase N/A testMissingType N/A N/A self N/A N/A N/A N/A N/A self assertRaises BadSpecError N/A N/A N/A N/A TransformFactory get_transform N/A custom_type user_display N/A testInvalidType N/A N/A self N/A N/A N/A N/A N/A self assertRaises BadSpecError N/A N/A N/A N/A TransformFactory get_transform N/A type custom_type not_a_transform_type user_display N/A N/A NumberFormatTransformTest N/A SimpleTestCase N/A setUp N/A N/A self N/A N/A N/A N/A self transform N/A N/A N/A N/A TransformFactory get_transform N/A type format_string number_format {0:.0f} get_transform_function N/A test_int N/A N/A self N/A N/A N/A N/A N/A self assertEqual 11 N/A N/A self transform 11 N/A test_decimal N/A N/A self N/A N/A N/A N/A N/A self assertEqual 11 N/A N/A self transform 11.23 N/A test_none N/A N/A self N/A N/A N/A N/A N/A self assertEqual None N/A N/A self transform None N/A N/A test_number_format_transform_strings N/A N/A self input expected_result N/A N/A N/A N/A N/A self assertEqual expected_result N/A N/A self transform input N/A N/A generate_cases N/A N/A 11 11 N/A 11.23 11 N/A notanumber notanumber N/A NumberFormatTransformTest CustomTransformTest N/A SimpleTestCase N/A testInvalidCustomType N/A N/A self N/A N/A N/A N/A N/A self assertRaises BadSpecError N/A N/A N/A N/A TransformFactory get_transform N/A type custom_type custom not_valid N/A testValidCustom N/A N/A self N/A N/A N/A transform N/A N/A TransformFactory get_transform N/A type custom_type custom user_display N/A N/A N/A self assertTrue N/A isinstance transform CustomTransform N/A N/A DaysElapsedTransformTest N/A SimpleTestCase N/A test_datetime_transform N/A N/A self N/A N/A N/A transform N/A N/A TransformFactory get_transform N/A type custom_type custom days_elapsed_from_date N/A N/A N/A self assertEqual N/A N/A transform transform N/A N/A N/A datetime utcnow N/A timedelta days 5 5 N/A test_string_transform N/A N/A self N/A N/A N/A transform N/A N/A TransformFactory get_transform N/A type custom_type custom days_elapsed_from_date N/A date N/A N/A N/A N/A N/A datetime utcnow N/A timedelta days 5 strftime %Y-%m-%d N/A N/A N/A self assertEqual N/A N/A transform transform date 5 N/A N/A