workspace / tests /test_analysis /test_A_reports.py
AntonioJun's picture
Replace tests with local workspace contents
e8055cf verified
Raw
History Blame Contribute Delete
543 Bytes
from tests.test_analysis.conftest import ReportTestCase, vlm
from analysis import A_reports
class TestAReports(ReportTestCase):
def test_A_report_and_controlled_frame_comparison(self):
d = self.directory("A", [vlm("A", frames=32), vlm("A", frames=64)])
result = A_reports.generate(d, ["base"], self.root / "reports")
self.assertEqual(result["path"].name, "A_report.json")
self.assertEqual(len(result["report"]["cells"]), 2)
self.assertEqual(len(result["report"]["within_harness_comparisons"]), 1)