def test_ambiguous_column_names_exception_is_ignored( self, input_df, mapping, expected_output_df): transformer = Mapper(mapping, ignore_ambiguous_columns=True) output_df = transformer.transform(input_df) assert_df_equality(expected_output_df, output_df)
def test_ambiguous_column_names_raise_exception(self, input_df, mapping): transformer = Mapper(mapping) with pytest.raises(AnalysisException): transformer.transform(input_df)