fireant.tests package

Subpackages

Submodules

fireant.tests.test_formats module

class fireant.tests.test_formats.CoerceTypeTests(methodName='runTest')[source]

Bases: unittest.case.TestCase

allow_literal_inf()[source]
allow_literal_inf_upper()[source]
allow_literal_nan()[source]
allow_literal_nan_upper()[source]
class fireant.tests.test_formats.DisplayValueTests(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_bool_false_value_no_formats()[source]
test_bool_false_value_with_precision()[source]
test_bool_false_value_with_prefix()[source]
test_bool_false_value_with_suffix()[source]
test_bool_true_value_no_formats()[source]
test_bool_true_value_with_precision()[source]
test_bool_true_value_with_prefix()[source]
test_bool_true_value_with_suffix()[source]
test_decimal_value_no_formats()[source]
test_decimal_value_with_precision_0()[source]
test_decimal_value_with_precision_2()[source]
test_decimal_value_with_precision_9()[source]
test_decimal_value_with_precision_trim_trailing_zeros()[source]
test_decimal_value_with_prefix()[source]
test_decimal_value_with_suffix()[source]
test_inf_format_no_formatting()[source]
test_int_value_no_formats()[source]
test_int_value_with_precision()[source]
test_int_value_with_prefix()[source]
test_int_value_with_suffix()[source]
test_nan_format_no_formatting()[source]
test_negative_usd_float_value()[source]
test_negative_usd_int_value()[source]
test_null_format_no_formatting()[source]
test_str_value_no_formats()[source]
test_str_value_with_precision()[source]
test_str_value_with_prefix()[source]
test_str_value_with_suffix()[source]
class fireant.tests.test_formats.FormatMetricValueTests(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_data_data_point_is_returned_as_string_iso_no_time()[source]
test_datatime_data_point_is_returned_as_string_iso_with_time()[source]
test_int64_data_point_is_returned_as_py_int()[source]
test_str_data_point_is_returned_unchanged()[source]
test_that_inf_data_point_is_converted_to_none()[source]
test_that_literal_strings_are_not_converted()[source]
test_that_nan_data_point_is_converted_to_none()[source]
test_that_neg_inf_data_point_is_converted_to_none()[source]
test_timestamp_data_point_is_returned_as_string_iso_no_time()[source]
test_timestamp_no_time_data_point_is_returned_as_string_iso_no_time()[source]

fireant.tests.utils module

class fireant.tests.utils.MergeDictTests(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_dict_on_right_side_overwrites_left_side_dict()[source]
test_merge_dict_does_not_modify_dicts()[source]
test_merge_dict_merges_dicts_successfully()[source]

Module contents