devenjarvis / sundew

Making Python testing easy, enjoyable, and effective ☀️
https://devenjarvis.github.io/sundew/
MIT License
10 stars 1 forks source link

Update sundew imports, moving sundew.test -> sundew.test_runner #56

Closed devenjarvis closed 1 year ago

devenjarvis commented 1 year ago

WIP branch for adding a fastapi example. Along the way I found a critical mistake in the docs where we say to import test with a from sundew import test but currently it's actually from sundew.test import test. I think the former is more ergonomic, so I renamed sundew.test to sundew.test_runner and exposed sundew.test_runner.test in the __init__.py so the documentation is correct, without namespace issues.

Will resume the fastapi example after releasing this correction