示例#1
0
 def setUpClass(cls):
     super(CitationsViewsTestCase, cls).setUpClass()
     # populate the DB with parsed citation styles
     try:
         parse_citation_styles.main()
     except OSError:
         pass
示例#2
0
def update_citation_styles():
    from scripts import parse_citation_styles
    total = parse_citation_styles.main()
    print("Parsed {} styles".format(total))
示例#3
0
 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
 def _parsed_citation_styles(self):
     # populate the DB with parsed citation styles
     try:
         parse_citation_styles.main()
     except OSError:
         pass