Closed jeanas closed 9 months ago
Note that there is a test for parse_keywords
but no test for the actual extraction as I didn't really understand how that was supposed to be tested. There seems to be a mixture of pytest and unittest, setuptools integration and not. Which should I use? Or should I just write a test that exercises the inner function directly? Help is welcome.
CI fails with a seemingly unrelated error.
There seems to be a mixture of pytest and unittest, setuptools integration and not.
For new tests, prefer plain pytest
style. Don't worry about the setuptools integration, it's... a bit of a mess.
Or should I just write a test that exercises the inner function directly? Help is welcome.
You can write a test that uses exercises the extraction function with a bespoke keywords
directly, that's fine!
(Rebasing on master)
Thank you. I've added a test and fixed the bug that it caught.
tox -e py311
passes for me locally. I'm not sure what to do about the CI.
Anything else needed?
Merging #1015 (be33f02) into master (9ef53c6) will increase coverage by
0.03%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## master #1015 +/- ##
==========================================
+ Coverage 90.91% 90.94% +0.03%
==========================================
Files 25 25
Lines 4358 4375 +17
==========================================
+ Hits 3962 3979 +17
Misses 396 396
Files Changed | Coverage ฮ | |
---|---|---|
babel/messages/extract.py | 95.31% <100.00%> (+0.12%) |
:arrow_up: |
babel/messages/frontend.py | 87.61% <100.00%> (+0.20%) |
:arrow_up: |
:mega: Weโre building smart automated test selection to slash your CI/CD build times. Learn more
Thank you for your review, @akx. The PR should be improved quite a bit now, especially with regard to documentation and code clarity.
@akx Gentle ping?
@jeanas Sorry, I was on holiday and all that ๐
A couple requests remaining. Thanks for your patience ๐
Now addressed.
Ping?
@akx Gentle ping.
Thank you!
Fixes #1014