Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TST: Basic test for PdfFileMerger #663

Merged
merged 2 commits into from Apr 6, 2022
Merged

TST: Basic test for PdfFileMerger #663

merged 2 commits into from Apr 6, 2022

Conversation

MartinThoma
Copy link
Member

No description provided.

@MartinThoma
Copy link
Member Author

Name                  Stmts   Miss Branch BrPart  Cover   Missing
-----------------------------------------------------------------
PyPDF2/__init__.py        5      0      0      0   100%
PyPDF2/_version.py        1      0      0      0   100%
PyPDF2/filters.py       302    238    140      9    21%   42, 54-108, 116-119, 123-162, 167, 173-189, 199-207, 210-211, 214-231, 238-265, 269, 274-345, 355, 360-385, 393->396, 398->424, 403, 405, 407, 410-418
PyPDF2/generic.py       725    288    325     53    57%   83-91, 110, 115, 125-128, 134-138, 154, 205, 214, 217, 222, 231-232, 246, 260-261, 264, 301, 312, 320, 322, 334, 336, 339->393, 379, 381-392, 410-415, 432->exit, 440-445, 453-454, 456-458, 463, 481, 487-494, 505, 507, 511-515, 529-537, 544->exit, 559, 564, 566-568, 571, 584-589, 599, 603-604, 610-612, 625-634, 648, 651, 654, 657-665, 668-690, 693-758, 761-774, 789, 797, 806-820, 828, 851, 866-868, 871-873, 879, 882, 885, 888, 891, 894, 897, 900, 903, 906, 909, 912, 915, 918, 921, 924, 927, 930, 960-967, 969->exit, 974->exit, 979->exit, 984->exit, 989->exit, 994->exit, 1001->exit, 1007->exit, 1013->exit, 1018->exit, 1048-1067, 1070, 1073-1087, 1089->exit, 1096->exit, 1103->exit, 1110->exit, 1117->exit, 1124->exit, 1131->exit, 1138->exit, 1148-1161, 1169-1170
PyPDF2/merger.py        288    175    157     20    32%   36-37, 114-115, 117-120, 121->133, 128, 135, 140-143, 147, 150->154, 155, 213->219, 232->exit, 240-246, 256, 273, 289, 299-304, 315-328, 335-345, 349->352, 354-419, 423-436, 439->442, 443-460, 463-474, 485-505, 515-516, 521-524, 527-529, 532-548, 551-553
PyPDF2/pagerange.py      49     25     24      5    48%   64-65, 68-69, 73, 76-78, 84->87, 90, 97, 120, 134-152
PyPDF2/pdf.py          1598    845    738    100    42%   52, 57, 70, 73, 119, 149, 186-188, 205-212, 266-324, 365-369, 380, 395-396, 411-443, 453, 457->460, 474->476, 476->478, 496-501, 522, 524, 537-540, 552, 561, 576, 585, 587, 592-597, 609-620, 623-655, 658-669, 672-694, 711-755, 758-763, 766-778, 784-788, 797-843, 852-897, 917-955, 983-1025, 1037-1040, 1057-1061, 1078-1081, 1097-1101, 1126->1141, 1130-1139, 1147, 1167-1172, 1174->exit, 1187-1191, 1193->exit, 1217-1218, 1222->1224, 1226->exit, 1269-1297, 1300-1312, 1315-1318, 1321-1342, 1348-1349, 1362->1374, 1368, 1370-1372, 1377-1393, 1395->exit, 1407->1425, 1413-1422, 1429-1445, 1449-1461, 1472-1474, 1486-1488, 1491-1493, 1496-1518, 1520->exit, 1537-1540, 1555-1558, 1577->1580, 1586->1588, 1589->exit, 1625, 1628-1633, 1636-1646, 1649-1650, 1670-1673, 1676, 1678->1680, 1686, 1697-1700, 1709, 1734, 1741->1743, 1748-1750, 1760, 1765, 1773-1778, 1782, 1796, 1803-1805, 1825-1826, 1835, 1846, 1856, 1863->1862, 1866, 1884, 1895-1896, 1923->1909, 1932->1909, 1936-1937, 1945, 1952-1970, 1973-1986, 1989, 1996->1993, 2006, 2010, 2016-2017, 2020-2021, 2023, 2073, 2079, 2090-2091, 2103, 2104->2110, 2124-2136, 2140-2142, 2146, 2150->exit, 2192-2208, 2218-2220, 2239-2250, 2254-2262, 2269-2272, 2278-2283, 2293-2296, 2309, 2316-2383, 2397, 2412, 2427-2428, 2445, 2463-2476, 2492-2501, 2520-2528, 2546-2559, 2575-2580, 2590-2612, 2621, 2631-2635, 2645-2649, 2664->2669, 2671-2674, 2676, 2678-2681, 2683-2686, 2745, 2763-2765, 2775-2776, 2783-2826, 2829-2845, 2848, 2869, 2872-2875, 2877->exit, 2881->exit, 2884->exit, 2888->exit, 2891->exit, 2895->exit, 2898->exit, 2904->exit, 2907->exit, 2913->exit, 2919, 2956, 2964->2971, 2978-2999, 3014->3021, 3030-3037
PyPDF2/utils.py         175     56     76      9    65%   59, 64, 69-70, 85, 116-117, 131-134, 146-147, 150, 153-165, 186, 195-202, 226-227, 246, 253, 263, 270, 277, 283-288, 292, 299-309
PyPDF2/xmp.py           207    207     78      0     0%   1-352
-----------------------------------------------------------------
TOTAL                  3350   1834   1538    196    41%

@MartinThoma MartinThoma merged commit 7069216 into master Apr 6, 2022
@MartinThoma MartinThoma deleted the test-merger branch April 6, 2022 11:39
MartinThoma added a commit that referenced this pull request Apr 7, 2022
Features:

 - Add alpha channel support for png files in Script (#614)

Bug fixes (BUG):

 - Fix formatWarning for filename without slash (#612)
 - Add whitespace between words for extractText() (#569, #334)
 - "invalid escape sequence" SyntaxError (#522)
 - Avoid error when printing warning in pythonw (#486)
 - Stream operations can be List or Dict (#665)

Documentation (DOC):

 - Added Scripts/pdf-image-extractor.py
 - Documentation improvements (#550, #538, #324, #426, #394)

Tests and Test setup (TST):

 - Add Github Action which automatically run unit tests via pytest and
   static code analysis with Flake8 (#660)
 - Add several unit tests (#661, #663)
 - Add .coveragerc to create coverage reports

Developer Experience Improvements (DEV):

 - Pre commit: Developers can now `pre-commit install` to avoid tiny issues
               like trailing whitespaces

Miscallenious:

 - Add the LICENSE file to the distributed packages (#288)
 - Use setuptools instead of distutils (#599)
 - Improvements for the PyPI page (#644)
 - Python 3 changes (#504, #366)

You can see the full changelog at: 1.26.0...1.27.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant