File size: 538 Bytes
e8055cf | 1 2 3 4 5 6 7 8 9 10 11 12 13 | import json
from tests.test_analysis.conftest import ReportTestCase, vlm
from analysis.letters_reports import load_profile as load
class TestAnalysisDirectory(ReportTestCase):
def test_arbitrary_subset_exports_letter_and_combined_files(self):
dirs = {l: self.directory(l, [vlm(l)]) for l in "AC"}
_, _, names = self.analyze("AC", dirs)
self.assertEqual(names, {"A_report.json", "C_report.json", "AC_report.json"})
for name in names:
json.loads((self.root / "reports" / name).read_text())
|