test-reporting 4.4.4__tar.gz → 4.4.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {test_reporting-4.4.4/test_reporting.egg-info → test_reporting-4.4.5}/PKG-INFO +1 -1
- {test_reporting-4.4.4 → test_reporting-4.4.5}/reporting/__init__.py +1 -1
- {test_reporting-4.4.4 → test_reporting-4.4.5}/reporting/exporters/pdf_exporter.py +1 -1
- {test_reporting-4.4.4 → test_reporting-4.4.5}/setup.py +1 -1
- {test_reporting-4.4.4 → test_reporting-4.4.5/test_reporting.egg-info}/PKG-INFO +1 -1
- {test_reporting-4.4.4 → test_reporting-4.4.5}/tests/test_published_monthly_report.py +19 -0
- {test_reporting-4.4.4 → test_reporting-4.4.5}/LICENSE +0 -0
- {test_reporting-4.4.4 → test_reporting-4.4.5}/README.md +0 -0
- {test_reporting-4.4.4 → test_reporting-4.4.5}/reporting/classifier.py +0 -0
- {test_reporting-4.4.4 → test_reporting-4.4.5}/reporting/cli.py +0 -0
- {test_reporting-4.4.4 → test_reporting-4.4.5}/reporting/config.py +0 -0
- {test_reporting-4.4.4 → test_reporting-4.4.5}/reporting/coverage.py +0 -0
- {test_reporting-4.4.4 → test_reporting-4.4.5}/reporting/exporters/__init__.py +0 -0
- {test_reporting-4.4.4 → test_reporting-4.4.5}/reporting/exporters/pptx_exporter.py +0 -0
- {test_reporting-4.4.4 → test_reporting-4.4.5}/reporting/exporters/xlsx_exporter.py +0 -0
- {test_reporting-4.4.4 → test_reporting-4.4.5}/reporting/monthly_report.py +0 -0
- {test_reporting-4.4.4 → test_reporting-4.4.5}/reporting/monthly_ui.py +0 -0
- {test_reporting-4.4.4 → test_reporting-4.4.5}/reporting/pdf_analysis.py +0 -0
- {test_reporting-4.4.4 → test_reporting-4.4.5}/reporting/plugin.py +0 -0
- {test_reporting-4.4.4 → test_reporting-4.4.5}/reporting/publisher.py +0 -0
- {test_reporting-4.4.4 → test_reporting-4.4.5}/reporting/report_insights.py +0 -0
- {test_reporting-4.4.4 → test_reporting-4.4.5}/reporting/run_source.py +0 -0
- {test_reporting-4.4.4 → test_reporting-4.4.5}/reporting/storage.py +0 -0
- {test_reporting-4.4.4 → test_reporting-4.4.5}/reporting/templates/index.html +0 -0
- {test_reporting-4.4.4 → test_reporting-4.4.5}/reporting/templates/project.html +0 -0
- {test_reporting-4.4.4 → test_reporting-4.4.5}/reporting/templates/run.html +0 -0
- {test_reporting-4.4.4 → test_reporting-4.4.5}/setup.cfg +0 -0
- {test_reporting-4.4.4 → test_reporting-4.4.5}/test_reporting.egg-info/SOURCES.txt +0 -0
- {test_reporting-4.4.4 → test_reporting-4.4.5}/test_reporting.egg-info/dependency_links.txt +0 -0
- {test_reporting-4.4.4 → test_reporting-4.4.5}/test_reporting.egg-info/entry_points.txt +0 -0
- {test_reporting-4.4.4 → test_reporting-4.4.5}/test_reporting.egg-info/requires.txt +0 -0
- {test_reporting-4.4.4 → test_reporting-4.4.5}/test_reporting.egg-info/top_level.txt +0 -0
|
@@ -229,7 +229,7 @@ class PDFExporter:
|
|
|
229
229
|
fontName='Helvetica', fontSize=9, fillColor=self.muted))
|
|
230
230
|
story.extend([self._p('Automated items / total tracked items. Supplied by the project; '
|
|
231
231
|
'separate from execution pass rate.', 'Small'), Spacer(1, 5), chart])
|
|
232
|
-
return story
|
|
232
|
+
return [KeepTogether(story)]
|
|
233
233
|
|
|
234
234
|
def _cover(self, meta, summary, analysis):
|
|
235
235
|
story = [Spacer(1, 1.15 * inch), self._p('QUALITY INTELLIGENCE / PERIOD REVIEW', 'SubTitle'),
|
|
@@ -9,7 +9,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
|
|
|
9
9
|
|
|
10
10
|
setup(
|
|
11
11
|
name='test-reporting',
|
|
12
|
-
version='4.4.
|
|
12
|
+
version='4.4.5',
|
|
13
13
|
description='Multi-project test reporting dashboard — collect results locally or push to S3',
|
|
14
14
|
long_description=long_description,
|
|
15
15
|
long_description_content_type="text/markdown",
|
|
@@ -318,6 +318,25 @@ class PublishedMonthlyReportTests(unittest.TestCase):
|
|
|
318
318
|
self.assertIn('40.0%', text)
|
|
319
319
|
self.assertNotIn('Test files and test cases', text)
|
|
320
320
|
|
|
321
|
+
@unittest.skipUnless(all(importlib.util.find_spec(x) for x in ('reportlab', 'pypdf')),
|
|
322
|
+
'Install reportlab and pypdf to verify PDF page layout')
|
|
323
|
+
def test_coverage_heading_and_ring_stay_on_the_same_page(self):
|
|
324
|
+
from pypdf import PdfReader
|
|
325
|
+
from reportlab.lib.pagesizes import A4
|
|
326
|
+
from reportlab.platypus import SimpleDocTemplate, Spacer
|
|
327
|
+
from reporting.exporters.pdf_exporter import PDFExporter
|
|
328
|
+
|
|
329
|
+
coverage = validate_coverage({'as_of': '2026-10-01', 'total_items': 20,
|
|
330
|
+
'automated_items': 8}, 'Project A')
|
|
331
|
+
output = self.config.STORE_PATH / 'coverage-layout.pdf'
|
|
332
|
+
document = SimpleDocTemplate(str(output), pagesize=A4)
|
|
333
|
+
document.build([Spacer(1, 630)] + PDFExporter()._coverage_section(coverage))
|
|
334
|
+
pages = PdfReader(str(output)).pages
|
|
335
|
+
self.assertEqual(len(pages), 2)
|
|
336
|
+
self.assertNotIn('Automation coverage', pages[0].extract_text())
|
|
337
|
+
self.assertIn('Automation coverage', pages[1].extract_text())
|
|
338
|
+
self.assertIn('40.0%', pages[1].extract_text())
|
|
339
|
+
|
|
321
340
|
def test_executive_summary_rejects_other_formats(self):
|
|
322
341
|
with self.assertRaisesRegex(ValueError, 'PDF only'):
|
|
323
342
|
MonthlyReportGenerator(self.config).generate(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|