Closed jamesfisher-geo closed 4 months ago
Hi @jamesfisher-gis. So sorting is working as usual with the API - outside of the tests?
Yes. There is no issue with the sorting logic. The issue was that the tests had updated so that a datetime object was being subtracted from a datetime string yielding this error and a failed test., for example
FAILED api/test_api.py::test_app_sort_extension_get_asc - TypeError: unsupported operand type(s) for -: 'str' and 'datetime.timedelta'
I have updated the tests so that it always uses a datetime object
Are you able to reproduce the issue in #262?
Yes I am getting the same test errors
Related Issue(s):
262
Description:
Edit to four tests of the sort extension. The timezone
Z
character was not being included with the.replace
command. So it was removed andZ
is appended to the datetime string.PR Checklist:
pre-commit run --all-files
)make test
)