LMFDB / lmfdb

L-Functions and Modular Forms Database
Other
254 stars 200 forks source link

Tests failing due to send_file() #5341

Closed SamSchiavone closed 1 year ago

SamSchiavone commented 1 year ago

I ran the tests on Legendre and many of the download tests failed.

=================== short test summary info ===================
FAILED lmfdb/abvar/fq/test_av.py::AVTest::test_download_all
FAILED lmfdb/abvar/fq/test_av.py::AVTest::test_av_download
FAILED lmfdb/abvar/fq/test_av.py::AVTest::test_download_curves
FAILED lmfdb/belyi/test_belyi.py::BelyiTest::test_download
FAILED lmfdb/classical_modular_forms/test_cmf2.py::CmfTest::test_download
FAILED lmfdb/classical_modular_forms/test_cmf2.py::CmfTest::test_download_magma
FAILED lmfdb/groups/abstract/test_abstract_groups.py::AbGpsTest::test_abstract_group_download
FAILED lmfdb/classical_modular_forms/test_cmf2.py::CmfTest::test_download_qexp
FAILED lmfdb/classical_modular_forms/test_cmf2.py::CmfTest::test_download_search
FAILED lmfdb/higher_genus_w_automorphisms/test_hgcwa.py::HigherGenusWithAutomorphismsTest::test_magma_download
FAILED lmfdb/tests/test_workshoplinks.py::HomePageTest::test_workshoplinks
= 11 failed, 517 passed, 6 skipped, 2822 warnings in 85.64s (0:01:25) =

It looks like the problem is an argument with the function send_file. Here's an example of one error with downloads.

>       return send_file(strIO,
                         download_name=filename,
                         as_attachment=True)
E       TypeError: send_file() got an unexpected keyword argument 'download_name'
edgarcosta commented 1 year ago

not an LMFDB issue