Repository navigation
fix(all): pcapkit.all.__all__ omits names its packages export - #1142
Conversation
|
Cross-review verdict on The PR body, the test docstring and the new Everything else checks out:
Whether to exclude the 11 utilities names is your call. I have asked on #1136. |
- list the 18 names corekit, foundation and protocols export but all.py left out, under their existing group comments (ESP/IPv6_Ext in Internet, HTTPv1/HTTPv2 in Application) - record pcapkit.utilities as deliberately unlisted, in all.py and the test - add tests/project/test_all_exports_unit.py, which reads the star-imports from all.py and fails on any aggregated export neither listed nor excluded Closes #1136
3290d3e to
d46c714
Compare
|
Cross-review verdict on Round 1's history error is fixed. The The delta between the two heads changes comments only; The utilities exclusion is still the maintainer's call, on #1136. |
|
Coverage: 88.75% (unit tier, Python 3.14,
Per-file detail: the |
Searched for similar pull requests
Followed the coding style (
make pylint,make mypy,make isort) — not runmake testpasses, and a test case covers the change — rantests/projectonly (see below)Added a changelog entry — N/A, added centrally after the wave
fix— corrects a defectCloses #1136
Adds the 18 missing names (corekit 5, foundation 8, protocols 5) to
pcapkit/all.pyunder their existing groups:ESP/IPv6_Extin Internet,HTTPv1/HTTPv2in Application,PCAPNGas its own "PCAPNG Format" line.pcapkit.utilities(11 names, unlisted since769a17c78on 2022-05-29, which commented its group out) stays deliberately unlisted: generic helpers likewarn/reset/configureshould not land viaimport *.New
tests/project/test_all_exports_unit.pyreads thefrom pcapkit.X import *lines withastand fails on any export neither listed nor in itsDELIBERATE_NON_EXPORTS; it also catches stale exclusions.from pcapkit.all import *lackedESP,HTTPv1,PCAPNG,EnumRegistry,ReassemblyManager, ... onmain; all present now,warnstill absent.3 failed, 4 passed(corekit, foundation, protocols subtests). With:4 passed, 8 subtests passed.test_all_layer_grouping_unit.py:5 passed.tests/project:389 passed, 1 skipped, 1297 subtests passed.