From 60650b874a7db5b2839dedb761fd7d97e5bd2f7c Mon Sep 17 00:00:00 2001 From: Olivier Mangin Date: Mon, 30 Jul 2018 17:46:04 +0200 Subject: [PATCH] Addresses minor comments (error message and better test). --- pubs/commands/import_cmd.py | 2 +- tests/test_usecase.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pubs/commands/import_cmd.py b/pubs/commands/import_cmd.py index 05279b2..53d5b4c 100644 --- a/pubs/commands/import_cmd.py +++ b/pubs/commands/import_cmd.py @@ -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() diff --git a/tests/test_usecase.py b/tests/test_usecase.py index d60bdb2..d7168b3 100644 --- a/tests/test_usecase.py +++ b/tests/test_usecase.py @@ -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') ]