コード例 #1
0
ファイル: test_citations.py プロジェクト: 545zhou/osf.io
 def setUpClass(cls):
     super(CitationsViewsTestCase, cls).setUpClass()
     # populate the DB with parsed citation styles
     try:
         parse_citation_styles.main()
     except OSError:
         pass
コード例 #2
0
ファイル: tasks.py プロジェクト: erinmayhood/osf.io
def update_citation_styles():
    from scripts import parse_citation_styles
    total = parse_citation_styles.main()
    print("Parsed {} styles".format(total))
コード例 #3
0
ファイル: test_citations.py プロジェクト: icereval/osf.io
 def _parsed_citation_styles(self):
     # populate the DB with parsed citation styles
     try:
         parse_citation_styles.main()
     except OSError:
         pass
コード例 #4
0
ファイル: __init__.py プロジェクト: envobe/osf.io
def update_citation_styles(ctx):
    from scripts import parse_citation_styles
    total = parse_citation_styles.main()
    print('Parsed {} styles'.format(total))
コード例 #5
0
ファイル: test_citations.py プロジェクト: jwalz/osf.io
 def _parsed_citation_styles(self):
     # populate the DB with parsed citation styles
     try:
         parse_citation_styles.main()
     except OSError:
         pass