Closed
Description
Some tests of the sort extension are failing when I run make test
on a clean pull from main
. It looks like this is just due to a type error in the tests introduced in the update to 3.0.0a.
The first_item property needs to be converted to a datetime
another_item_date = first_item["properties"]["datetime"] - timedelta(days=1)
I get
FAILED api/test_api.py::test_app_sort_extension_get_asc - TypeError: unsupported operand type(s) for -: 'str' and 'datetime.timedelta'
FAILED api/test_api.py::test_app_sort_extension_get_desc - TypeError: unsupported operand type(s) for -: 'str' and 'datetime.timedelta'
FAILED api/test_api.py::test_app_sort_extension_post_asc - TypeError: unsupported operand type(s) for -: 'str' and 'datetime.timedelta'
FAILED api/test_api.py::test_app_sort_extension_post_desc - TypeError: unsupported operand type(s) for -: 'str' and 'datetime.timedelta'
To Reproduce
git clone
make test
Metadata
Metadata
Assignees
Labels
No labels