Skip to content

Fix excel upload and tests - #2

Merged
marcodanielepellizzari merged 2 commits into
mainfrom
fix-excel-upload-and-tests
Aug 25, 2026
Merged

Fix excel upload and tests#2
marcodanielepellizzari merged 2 commits into
mainfrom
fix-excel-upload-and-tests

Conversation

@marcodanielepellizzari

Copy link
Copy Markdown
Owner

No description provided.

pandas.read_excel() needs xlrd to read legacy .xls files (openpyxl
only covers .xlsx/.xlsm), but xlrd was never in requirements.txt, so
uploading a .xls dataset 500s at the column-mapping step with
"ImportError: Import xlrd failed". No application code change is
needed once the dependency is present.

Adds a regression-test suite built from a 10-row extract of the first
sheet of a real Isotrace .xls file: fixtures in the same three formats
accepted by the upload wizard (.csv/.xlsx/.xls), unit tests on
services.load_dataframe(), and an end-to-end test driving the actual
upload -> map columns -> preview -> import views for each format.
@marcodanielepellizzari
marcodanielepellizzari merged commit e952760 into main Aug 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant