Test bleach_build_py
pquentin opened this issue · 4 comments
Okay, so we want to get to 100% coverage here: https://codecov.io/gh/RatanShreshtha/asyncbleach/src/master/asyncbleach/__init__.py. The next big step is to test bleach_build_py itself.
To do that, we'll need to write a project in the tests with a setup.py file, then call "python setup.py build", and see that the code did indeed get bleached.
Do you think you can work on that, @RatanShreshtha?
So I should created a simple hello world find of python project in tests and run python setup.py build
?
I think I can work on that. Can you suggest a minimalistic python project setup for that ?
I think we want a fake project in tests. For now we'll run python setup.py build
manually, we'll worry about doing that from the tests later.
- You can read this setup.py documentation: https://packaging.python.org/tutorials/packaging-projects/ (other pages are useful too!)
- We'll also need a src directory: urllib3/urllib3#1409 explains why with links to useful readings
- And we will want to use bleach_build_py: look at python-trio/urllib3 for that.
A PR even for the first item would be useful. As always feel free to ask questions.
So what should be the next thing for achieving coverage?
Two things left: actually use bleach_build_by, then run python setup.py build
in the tests.