def setUp(self):
     """Loads bibfield configuration test files"""
     parser = BibFieldParser(main_config_file="test_bibfield.cfg")
     self.config_rules = parser.config_rules
Пример #2
0
def load():
    """Loads BibField config."""
    print ">>> Going to load BibField config..."
    from invenio.bibfield_config_engine import BibFieldParser
    BibFieldParser().write_to_file()
    print ">>> BibField config load successfully."
 def setUp(self):
     """Loads bibfield configuration test files"""
     super(BibFieldParserUnitTests, self).setUp()
     from invenio.bibfield_config_engine import BibFieldParser
     parser = BibFieldParser(main_config_file="test_bibfield.cfg")
     self.config_rules = parser.config_rules
 def setUp(self):
     """Loads bibfield configuration test files"""
     BibFieldParser._field_definitions = {}
     BibFieldParser._legacy_field_matchings = {}
     parser = BibFieldParser(main_config_file="test_bibfield.cfg")._create()
     self.config_rules = BibFieldParser.field_definitions()