File size: 601 Bytes
e8055cf | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | from tests.test_analysis.conftest import ReportTestCase
from analysis import F_reports
class TestFReports(ReportTestCase):
def test_F_legacy_and_future_perceived_layouts(self):
for future in (False, True):
result = F_reports.generate(
self.symbolic(future),
(),
self.root / ("future" if future else "legacy"),
)
self.assertEqual(result["path"].name, "F_report.json")
cell = next(iter(result["report"]["cells"].values()))
self.assertEqual(cell["identity"]["source"], "perceived")
|