diff --git a/.gitignore b/.gitignore index 4f99fef..50eb853 100644 --- a/.gitignore +++ b/.gitignore @@ -40,3 +40,7 @@ nosetests.xml .mr.developer.cfg .project .pydevproject + + +# Tests +.pytest_cache diff --git a/tests/bibexamples/leadingspace.bib b/tests/bibexamples/leadingspace.bib index ebe863e..68996bb 100644 --- a/tests/bibexamples/leadingspace.bib +++ b/tests/bibexamples/leadingspace.bib @@ -1,4 +1,4 @@ -@article{ Space, +@article{ LeadingSpace , author = {Name, FirstName}, title = {Title}, } diff --git a/tests/requirements.txt b/tests/requirements.txt index d8ab57e..d633271 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -1,4 +1,4 @@ # those are the additional packages required to run the tests six -git+http://github.com/jmcgeheeiv/pyfakefs#egg=pyfakefs +pyfakefs ddt diff --git a/tests/test_usecase.py b/tests/test_usecase.py index 0960a21..eb3f22a 100644 --- a/tests/test_usecase.py +++ b/tests/test_usecase.py @@ -323,12 +323,11 @@ class TestAdd(URLContentTestCase): doc_dir = os.path.join(self.default_pubs_dir, 'doc') self.assertEqual(set(os.listdir(doc_dir)), {'Page99.pdf'}) - @unittest.expectedFailure def test_leading_citekey_space(self): cmds = ['pubs init', 'pubs add bibexamples/leadingspace.bib', 'pubs rename LeadingSpace NoLeadingSpace', - ] + ] self.execute_cmds(cmds) def test_add_no_citekey_fails(self):