Fix bibtex testcase, closes #25.

Also, made pyfakefs a straight pypi requirement, rather than a
github one, as no dev feature is needed since the last release.
main
Fabien C. Y. Benureau 7 years ago
parent d685ec10aa
commit 8126a0e0b4

4
.gitignore vendored

@ -40,3 +40,7 @@ nosetests.xml
.mr.developer.cfg .mr.developer.cfg
.project .project
.pydevproject .pydevproject
# Tests
.pytest_cache

@ -1,4 +1,4 @@
@article{ Space, @article{ LeadingSpace ,
author = {Name, FirstName}, author = {Name, FirstName},
title = {Title}, title = {Title},
} }

@ -1,4 +1,4 @@
# those are the additional packages required to run the tests # those are the additional packages required to run the tests
six six
git+http://github.com/jmcgeheeiv/pyfakefs#egg=pyfakefs pyfakefs
ddt ddt

@ -323,12 +323,11 @@ class TestAdd(URLContentTestCase):
doc_dir = os.path.join(self.default_pubs_dir, 'doc') doc_dir = os.path.join(self.default_pubs_dir, 'doc')
self.assertEqual(set(os.listdir(doc_dir)), {'Page99.pdf'}) self.assertEqual(set(os.listdir(doc_dir)), {'Page99.pdf'})
@unittest.expectedFailure
def test_leading_citekey_space(self): def test_leading_citekey_space(self):
cmds = ['pubs init', cmds = ['pubs init',
'pubs add bibexamples/leadingspace.bib', 'pubs add bibexamples/leadingspace.bib',
'pubs rename LeadingSpace NoLeadingSpace', 'pubs rename LeadingSpace NoLeadingSpace',
] ]
self.execute_cmds(cmds) self.execute_cmds(cmds)
def test_add_no_citekey_fails(self): def test_add_no_citekey_fails(self):

Loading…
Cancel
Save