Hochfrequenz / kohlrahbi

An Anwendungshandbücher (AHB) scraper that extracts tables from docx files
https://pypi.org/project/kohlrahbi/
GNU General Public License v3.0
5 stars 2 forks source link

Use Snapshots To Simplify Unit Tests #389

Closed hf-krechan closed 2 months ago

hf-krechan commented 3 months ago

Use https://pypi.org/project/syrupy/ to improve the unit test setup.

This makes it easier to handle the comparison in the tests between the expected scraping result and the current scraped results. You can also easy update the snapshots by running the command

pytest --snapshot-update
hf-krechan commented 2 months ago

not totally sure if it is the first PR with used surypy, but the surypy was added at least in the PR #395.