hhursev / recipe-scrapers

Python package for scraping recipes data
MIT License
1.6k stars 505 forks source link

Tests: use package metadata as source of README test data. #1162

Open jayaddison opened 2 days ago

jayaddison commented 2 days ago

This works for me locally on Py3.11; I'm not 100% certain whether this is entirely backwards compatible through Py3.8.

May resolve #1160.

jayaddison commented 2 days ago

@rmdluo @jknndy the README.rst file isn't included in the built recipe_scrapers Python library package -- however, the same metadata is available in the package description, and the test_includes unit test (the one that checks for all of the scraper hyperlinks) does work using that text instead.

What do you think about this as a potential change to read the content from the package metadata?