コード例 #1
0
ファイル: test_monster.py プロジェクト: glottolog/pyglottolog
def test_main(capsys, api_copy):
    monster.compile(api_copy)
    out, _ = capsys.readouterr()
    assert len(out.splitlines()) == 49
    assert '2 splitted' in out
    assert '2 merged' in out
コード例 #2
0
ファイル: commands.py プロジェクト: RimonWehbi/glottolog
def bib(args):
    """Compile the monster bibfile from the BibTeX files listed in references/BIBFILES.ini

    glottolog bib [rebuild]
    """
    compile(args.repos, args.log, rebuild=bool(args.args))