Bugfix when no skip

This commit is contained in:
Phyks 2014-06-08 18:54:24 +02:00
parent 2509a69694
commit 2eb49eca94
3 changed files with 41 additions and 5 deletions

View File

@ -139,7 +139,6 @@ Here are some sources of inspirations for this project :
A list of ideas and TODO. Don't hesitate to give feedback on the ones you really want or to propose your owns.
60. Unittest
70. Export of bibtex
80. Search engine
85. Anti-duplicate ?
90. Look for published version in arXiv

8
bmc.py
View File

@ -432,14 +432,14 @@ if __name__ == '__main__':
parser_import.add_argument('file', nargs='+',
help="path to the file to import")
parser_import.add_argument('--skip', nargs='+',
help="path to files to skip")
help="path to files to skip", default=[])
parser_import.set_defaults(func='import')
parser_delete = subparsers.add_parser('delete', help="delete help")
parser_delete.add_argument('entries', metavar='entry', nargs='+',
help="a filename or an identifier")
parser_delete.add_argument('--skip', nargs='+',
help="path to files to skip")
help="path to files to skip", default=[])
group = parser_delete.add_mutually_exclusive_group()
group.add_argument('--id', action="store_true", default=False,
help="id based deletion")
@ -454,7 +454,7 @@ if __name__ == '__main__':
parser_edit.add_argument('entries', metavar='entry', nargs='+',
help="a filename or an identifier")
parser_edit.add_argument('--skip', nargs='+',
help="path to files to skip")
help="path to files to skip", default=[])
group = parser_edit.add_mutually_exclusive_group()
group.add_argument('--id', action="store_true", default=False,
help="id based deletion")
@ -561,7 +561,7 @@ if __name__ == '__main__':
sys.exit("Unable to open file associated " +
"to ident "+filename)
sys.exit()
elif args.func == 'export':
bibtex = ''
for id in args.ids:

View File

@ -8,3 +8,40 @@
# <del>beer</del> soda in return.
# Phyks
# -----------------------------------------------------------------------------
import unittest
from backend import *
class TestFetcher(unittest.TestCase):
def test_getNewName(self):
return
def test_bibtexAppend(self):
return
def test_bibtexEdit(self):
return
def test_bibtexRewrite(self):
return
def test_deleteId(self):
return
def test_deleteFile(self):
return
def test_diffFilesIndex(self):
return
def test_getBibtex(self):
return
def test_getEntries(self):
return
def test_updateArxiv(self):
return
if __name__ == '__main__':
unittest.main()