Updates field orders to use 'url' and fixes broken test.

The field ordering test was broken on the latest bibtexparser since it
now replaces by default 'link' fields by 'url'.
main
Olivier Mangin 7 years ago
parent cfb0042e37
commit 078b2084ff

@ -28,8 +28,8 @@ else:
BIBFIELD_ORDER = ['author', 'title', 'journal', 'institution', 'publisher',
'year', 'month', 'number', 'volume', 'pages', 'link', 'doi',
'note', 'abstract']
'year', 'month', 'number', 'volume', 'pages', 'url', 'link',
'doi', 'note', 'abstract']
def sanitize_citekey(record):

@ -108,7 +108,7 @@ class TestEnDecode(unittest.TestCase):
self.assertEqual(lines[5].split('=')[0].strip(), u'year')
self.assertEqual(lines[6].split('=')[0].strip(), u'month')
self.assertEqual(lines[7].split('=')[0].strip(), u'number')
self.assertEqual(lines[8].split('=')[0].strip(), u'link')
self.assertEqual(lines[8].split('=')[0].strip(), u'url')
self.assertEqual(lines[9].split('=')[0].strip(), u'note')
self.assertEqual(lines[10].split('=')[0].strip(), u'abstract')

Loading…
Cancel
Save