seedcase-project / seedcase-sprout

Upload your research data to formally structure it for better, more reliable, and easier research.
https://sprout.seedcase-project.org/
MIT License
0 stars 0 forks source link

build: :bricks: add pytest and rearrange tests to make use of pytest #524

Closed lwjohnst86 closed 1 month ago

lwjohnst86 commented 1 month ago

Description

These changes are adding pytest infrastructure, converting some tests over into the correct format, as well as some small updates to make working with pytest easier in VSCode.

A problem this has identified is that the file upload isn't properly deleting the file if the metadata extraction isn't finished correctly. So I made an issue here: #523

Closes #506, closes #505, and related to seedcase-project/.github#165

Reviewer Focus

This PR needs a bit of an in-depth review. Mostly adding infrastructure to allow us to use pytest.

Unfortunately, the build fails because of an issue with deleting a file during 'upload', which I already created an issue about early. Not sure why unittest didn't pick up this issue earlier...

Checklist