Addresses minor comments (error message and better test).
This commit is contained in:
parent
ea711b6b42
commit
60650b874a
@ -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()
|
||||
|
@ -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')
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user