Addresses minor comments (error message and better test).

This commit is contained in:
Olivier Mangin 2018-07-30 17:46:04 +02:00
parent ea711b6b42
commit 60650b874a
No known key found for this signature in database
GPG Key ID: D72FEC1C3120A884
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ def many_from_path(ui, bibpath):
for b in biblist:
for k, b in b.items():
if k in papers:
ui.warning('Duplicated citekey {}. Keeping last.'.format(k))
ui.warning('Duplicated citekey {}. Keeping the last one.'.format(k))
try:
papers[k] = Paper(k, b)
papers[k].added = datetime.datetime.now()

View File

@ -703,7 +703,7 @@ class TestUsecase(DataCommandTestCase):
cmds = ['pubs init',
'pubs add data/pagerank.bib',
('pubs edit Page99', [
'', 'y',
'@misc{Page99, title="TTT" author="X. YY"}', 'y',
'@misc{Page99, title="TTT", author="X. YY"}', '']),
('pubs list', [], '[Page99] YY, X. "TTT" \n')
]