Skip to content

Commit

Permalink
Resolve issues with various Sphinx tests
Browse files Browse the repository at this point in the history
Resolve issues with the Sphinx tests.

Signed-off-by: Stephen Finucane <stephen@that.guru>
  • Loading branch information
stephenfin committed Apr 26, 2020
1 parent 6d67776 commit a2776ee
Show file tree
Hide file tree
Showing 11 changed files with 69 additions and 98 deletions.
9 changes: 1 addition & 8 deletions rst2pdf/tests/conftest.py
Expand Up @@ -252,14 +252,7 @@ def _build(self):

input_dir = os.path.join(INPUT_DIR, self.name)
build_dir = tempfile.mkdtemp(prefix='rst2pdf-sphinx-')
# TODO(stephenfin): Add '-W' once we fix the failing tests and update
# the PDFs
#
# sphinx-issue257
# sphinx-issue318
# sphinx-issue364
# sphinx-multidoc
# sphinx-repeat-table-rows

cmd = ['sphinx-build', '-b', 'pdf', input_dir, build_dir]

try:
Expand Down
2 changes: 1 addition & 1 deletion rst2pdf/tests/input/sphinx-issue257/conf.py
Expand Up @@ -34,7 +34,7 @@
source_encoding = 'utf-8'

# The master toctree document.
master_doc = 'foobar'
master_doc = 'index'

# General information about the project.
project = u'Foobar'
Expand Down
17 changes: 0 additions & 17 deletions rst2pdf/tests/input/sphinx-issue257/foobar.rst

This file was deleted.

2 changes: 1 addition & 1 deletion rst2pdf/tests/input/sphinx-issue318/test.rst
Expand Up @@ -20,7 +20,7 @@ Contents:

Describes a method without types.

.. cpp:function:: const T &array<T>::operator[]() const
.. cpp:function:: const T& array::operator[] (int index) const

Describes the constant indexing operator of a templated array.

Expand Down
1 change: 0 additions & 1 deletion rst2pdf/tests/input/sphinx-issue364/index.rst
Expand Up @@ -11,4 +11,3 @@ Index 1
A term in 2nd place

:term:`term1` and :term:`term2` link to the glossary

5 changes: 2 additions & 3 deletions rst2pdf/tests/input/sphinx-issue364/index2.rst
@@ -1,6 +1,6 @@
Index 2

:orphan:

Index 2

.. glossary::

Expand All @@ -11,4 +11,3 @@ Index 2
A term in 2nd place

:term:`term3` and :term:`term2` link to the glossary

3 changes: 0 additions & 3 deletions rst2pdf/tests/input/sphinx-multidoc/index.rst
@@ -1,7 +1,5 @@
Index 1



.. glossary::

term1
Expand All @@ -11,4 +9,3 @@ Index 1
A term in 2nd place

:term:`term1` and :term:`term2` link to the glossary

5 changes: 2 additions & 3 deletions rst2pdf/tests/input/sphinx-multidoc/index2.rst
@@ -1,6 +1,6 @@
Index 2

:orphan:

Index 2

.. glossary::

Expand All @@ -11,4 +11,3 @@ Index 2
A term in 2nd place

:term:`term3` and :term:`term2` link to the glossary

123 changes: 62 additions & 61 deletions rst2pdf/tests/input/sphinx-repeat-table-rows/index.rst

Large diffs are not rendered by default.

Binary file modified rst2pdf/tests/reference/sphinx-issue318.pdf
Binary file not shown.
Binary file modified rst2pdf/tests/reference/sphinx-repeat-table-rows.pdf
Binary file not shown.

0 comments on commit a2776ee

Please sign in to comment.