Merge pull request #117 from pubs/bug/leadingspace
Fix bibtex testcase, closes #25.
This commit is contained in:
commit
cfb0042e37
4
.gitignore
vendored
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…
x
Reference in New Issue
Block a user