Skip to content

feat: Add composite fields #54

feat: Add composite fields

feat: Add composite fields #54

GitHub Actions / UT Report succeeded Dec 21, 2023 in 0s

UT Report βœ…

Tests passed successfully

βœ…Β /home/src/magicparse/reports/unit_tests_results.xml

112 tests were completed in 257ms with 112 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
pytest 112βœ… 257ms

βœ…Β pytest

tests.test_composite_fields.TestBuild
  βœ… test_bad_value_for_composite_processor
  βœ… test_empty_composite_processor
  βœ… test_error_format
  βœ… test_not_iterable_value_for_composite_processor
  βœ… test_with_one_composite_processor
  βœ… test_with_two_composite_processor
  βœ… test_without_composite_processor
tests.test_composite_processors.TestBuild
  βœ… test_no_name_provided
  βœ… test_unknown
  βœ… test_with_parameter
  βœ… test_without_parameter
tests.test_composite_processors.TestConcat
  βœ… test_concat_integer
  βœ… test_concat_three_fields
  βœ… test_concat_two_fields
  βœ… test_empty_params
  βœ… test_field_not_present
  βœ… test_fields_params_empty
  βœ… test_fields_params_has_less_than_two_field
  βœ… test_fields_params_not_a_list_of_str
  βœ… test_no_params
tests.test_encodings.TestCsvEncoding
  βœ… test_default_encoding
  βœ… test_exotic_encoding
tests.test_encodings.TestExoticEncoding
  βœ… test_default_encoding
  βœ… test_exotic_encoding
tests.test_fields
  βœ… test_chain_transformations
  βœ… test_chain_transformations_with_post_processors
  βœ… test_csv_error_format
  βœ… test_columnar_error_format
  βœ… test_optional_field
  βœ… test_required_field
  βœ… test_require_field_with_empty_value
tests.test_post_processors.TestBuild
  βœ… test_divide
  βœ… test_no_name_provided
  βœ… test_unknown
tests.test_post_processors.TestDivide
  βœ… test_divide_decimal
  βœ… test_divide_float
  βœ… test_divide_int
  βœ… test_fail_when_denominator_is_zero
tests.test_post_processors.TestRegister
  βœ… test_register
tests.test_pre_processors.TestBuild
  βœ… test_left_pad_zeroes
  βœ… test_left_strip
  βœ… test_map
  βœ… test_no_name_provided
  βœ… test_regex_extract
  βœ… test_replace
  βœ… test_strip_whitespaces
  βœ… test_unknown
tests.test_pre_processors.TestLeftPadZeroes
  βœ… test_do_nothing
  βœ… test_pad
tests.test_pre_processors.TestMap
  βœ… test_known_input
  βœ… test_unknown_input
tests.test_pre_processors.TestReplace
  βœ… test_pattern_not_found
  βœ… test_success
tests.test_pre_processors.TestStripWhitespaces
  βœ… test_do_nothing
  βœ… test_success
tests.test_pre_processors.TestLeftStrip
  βœ… test_do_nothing
  βœ… test_success
tests.test_pre_processors.TestRegexExtract
  βœ… test_build_without_value_group
  βœ… test_pattern_found
  βœ… test_pattern_not_found
tests.test_pre_processors.TestRegister
  βœ… test_register
tests.test_schema.TestBuild
  βœ… test_columnar
  βœ… test_csv_with_hdelimiter
  βœ… test_csv_with_header
  βœ… test_default_csv_schema
  βœ… test_unknwown
tests.test_schema.TestCsvParse
  βœ… test_error_display_row_number
  βœ… test_errors_do_not_halt_parsing
  βœ… test_with_header
  βœ… test_with_no_data
  βœ… test_with_no_field_definition
  βœ… test_without_header
tests.test_schema.TestColumnarParse
  βœ… test_error_display_row_number
  βœ… test_errors_do_not_halt_parsing
  βœ… test_parse
  βœ… test_with_no_data
  βœ… test_with_no_field_definition
tests.test_schema.TestQuotingSetting
  βœ… test_asymetrical_quote
  βœ… test_double_quote
  βœ… test_no_quote
  βœ… test_single_quote
tests.test_schema.TestRegister
  βœ… test_register
tests.test_type_converters.TestBuild
  βœ… test_datetime
  βœ… test_decimal
  βœ… test_int
  βœ… test_no_type_provided
  βœ… test_str
  βœ… test_time
  βœ… test_unknown
tests.test_type_converters.TestStr
  βœ… test_apply
tests.test_type_converters.TestInt
  βœ… test_apply
  βœ… test_apply_failed
tests.test_type_converters.TestDecimal
  βœ… test_apply
  βœ… test_apply_failed
tests.test_type_converters.TestTime
  βœ… test_apply
  βœ… test_apply_failed
  βœ… test_apply_naive_time
tests.test_type_converters.TestDateTime
  βœ… test_apply
  βœ… test_apply_failed
  βœ… test_apply_naive_time
tests.test_type_converters.TestRegister
  βœ… test_register
tests.test_validators.TestBuild
  βœ… test_greater_than_params_are_correct
  βœ… test_no_name_provided
  βœ… test_regex_matches
  βœ… test_unknown
tests.test_validators.TestRegexMatches
  βœ… test_does_not_match
  βœ… test_match
tests.test_validators.TestRegister
  βœ… test_register
tests.test_validators.TestGreaterThanValidator
  βœ… test_it_raises_an_error_when_the_value_is_equal_to_threshold
  βœ… test_it_raises_an_error_when_the_value_is_lower_than_threshold
  βœ… test_it_successfully_returns_the_value_when_greater_than_decimal_threshold
  βœ… test_it_successfully_returns_the_value_when_greater_than_threshold