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

fix: 🐛 debug code depended on old unittest, updated for pytest #529

Closed martonvago closed 1 month ago

martonvago commented 1 month ago

Description

These changes fix failing tests by updating the way we check whether tests are running. This became out of date after switching to pytest. As a result, sample data was loaded into the test database, so tests checking if the Files table was empty were failing.

I've also added an extra test debug config allowing us to set breakpoints etc. in external files (e.g. library files or Django core code) -- feel free to ignore/change this.

Closes #523

Reviewer Focus

This PR needs a quick review.

Checklist

martonvago commented 1 month ago

Thanks, it's not particularly urgent for me, so it can wait :)