workspace / tests /test_analysis /test_F_reports.py
AntonioJun's picture
Replace tests with local workspace contents
e8055cf verified
Raw
History Blame Contribute Delete
601 Bytes
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")