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