Skip to content

Commit

Permalink
Merge pull request #86 from mcmtroffaes/feature/fix-issue85
Browse files Browse the repository at this point in the history
Test and fix for sorting entries without author.
  • Loading branch information
mcmtroffaes committed Oct 27, 2015
2 parents 5a52d4c + 72ed581 commit 08b70d3
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/issue85/conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
extensions = ['sphinxcontrib.bibtex']
exclude_patterns = ['_build']
4 changes: 4 additions & 0 deletions test/issue85/contents.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
:cite:`_software_2015`
:cite:`2009:mandel`

.. bibliography:: test.bib
17 changes: 17 additions & 0 deletions test/issue85/test.bib
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@misc{_software_2015,
title = {Software projects built on {Mesos}},
url = {http://mesos.apache.org/documentation/latest/mesos-frameworks/},
month = sep,
year = 2015
}

@Misc{2009:mandel,
author = {Jan Mandel},
title = {A Brief Tutorial on the Ensemble {K}alman Filter},
howpublished = {arXiv:0901.3725v1 [physics.ao-ph]},
month = jan,
year = {2009},
archivePrefix = {arXiv},
eprint = {0901.3725},
primaryClass = {physics.ao-ph}
}
19 changes: 19 additions & 0 deletions test/test_issue85.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
"""
test_issue77
~~~~~~~~~~~~
Test for reference with no author and no key.
"""

from sphinx_testing.util import path, with_app

srcdir = path(__file__).dirname().joinpath('issue85').abspath()


def teardown_module():
(srcdir / '_build').rmtree(True)


@with_app(srcdir=srcdir, warningiserror=True)
def test_issue77(app, status, warning):
app.builder.build_all()

0 comments on commit 08b70d3

Please sign in to comment.