Example #1
0
 def cmd_readme(self, args):
     res = self.metadata.markdown()
     tr = self.cldf_dir / '.transcription-report.json'
     tr = jsonlib.load(tr) if tr.exists() else None
     res += report.report(self, tr, getattr(args, 'glottolog', None),
                          args.log)
     if self.contributors_path.exists():
         res += '\n\n{0}\n\n'.format(
             self.contributors_path.read_text(encoding='utf8'))
     self.dir.write('FORMS.md', self.form_spec.as_markdown(self))
     return res
Example #2
0
def test_report_full(dataset):
    assert report(dataset)
Example #3
0
def test_report(ds):
    assert report(ds)