mirror of
https://github.com/apache/superset.git
synced 2026-04-10 11:55:24 +00:00
fix(excel): remove unwanted index column from Excel exports (#38176)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -126,7 +126,7 @@ def test_get_data_xlsx(
|
||||
result = processor.get_data(df, coltypes)
|
||||
assert result == b"binary data"
|
||||
mock_apply_column_types.assert_called_once_with(df, coltypes)
|
||||
mock_df_to_excel.assert_called_once_with(df)
|
||||
mock_df_to_excel.assert_called_once_with(df, index=False)
|
||||
|
||||
|
||||
def test_get_data_json(processor, mock_query_context):
|
||||
@@ -201,7 +201,7 @@ def test_get_data_empty_dataframe_xlsx(
|
||||
result = processor.get_data(df, coltypes)
|
||||
assert result == b"binary data empty"
|
||||
mock_apply_column_types.assert_called_once_with(df, coltypes)
|
||||
mock_df_to_excel.assert_called_once_with(df)
|
||||
mock_df_to_excel.assert_called_once_with(df, index=False)
|
||||
|
||||
|
||||
def test_get_data_nan_values_json(processor, mock_query_context):
|
||||
|
||||
Reference in New Issue
Block a user