From: Jani Nikula <jani@nikula.org>
To: notmuch@notmuchmail.org
Subject: [PATCH v2 4/4] test: use html builder for directive tests
Date: Mon, 28 Jan 2019 00:04:29 +0200 [thread overview]
Message-ID: <20190127220429.9206-4-jani@nikula.org> (raw)
In-Reply-To: <20190127220429.9206-1-jani@nikula.org>
Slower but does not lose information as much, providing more accurate
results. Switch to the basic template for speed.
---
test/conf.py | 2 +-
test/test_cautodoc.py | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/test/conf.py b/test/conf.py
index 6d36327df085..d4c3d34c8b3b 100644
--- a/test/conf.py
+++ b/test/conf.py
@@ -75,7 +75,7 @@ pygments_style = None
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
-html_theme = 'alabaster'
+html_theme = 'basic'
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
diff --git a/test/test_cautodoc.py b/test/test_cautodoc.py
index 0a8e5bb2815f..ad54cae2e98e 100755
--- a/test/test_cautodoc.py
+++ b/test/test_cautodoc.py
@@ -9,7 +9,7 @@ import unittest
import testenv
from sphinx_testing import with_app
-@with_app(confdir=testenv.testdir, create_new_srcdir=True, buildername='text')
+@with_app(confdir=testenv.testdir, create_new_srcdir=True, buildername='html')
def _get_output(input_filename, app, status, warning, **options):
shutil.copyfile(input_filename,
testenv.modify_filename(input_filename, dir=app.srcdir))
@@ -23,16 +23,16 @@ def _get_output(input_filename, app, status, warning, **options):
app.build()
- return testenv.read_file(os.path.join(app.outdir, 'index.txt'))
+ return testenv.read_file(os.path.join(app.outdir, 'index.html'))
-@with_app(confdir=testenv.testdir, create_new_srcdir=True, buildername='text')
+@with_app(confdir=testenv.testdir, create_new_srcdir=True, buildername='html')
def _get_expected(input_filename, app, status, warning, **options):
shutil.copyfile(testenv.modify_filename(input_filename, ext='stdout'),
os.path.join(app.srcdir, 'index.rst'))
app.build()
- return testenv.read_file(os.path.join(app.outdir, 'index.txt'))
+ return testenv.read_file(os.path.join(app.outdir, 'index.html'))
class DirectiveTest(unittest.TestCase):
pass
--
2.20.1
next prev parent reply other threads:[~2019-01-27 22:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-27 22:04 [PATCH v2 1/4] test: dynamically generate parser tests Jani Nikula
2019-01-27 22:04 ` [PATCH v2 2/4] test: dynamically generate directive tests Jani Nikula
2019-01-27 22:04 ` [PATCH v2 3/4] test: add support for flagging expected failures in testcase options Jani Nikula
2019-01-27 22:04 ` Jani Nikula [this message]
2019-01-27 22:07 ` [PATCH v2 1/4] test: dynamically generate parser tests Jani Nikula
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190127220429.9206-4-jani@nikula.org \
--to=jani@nikula.org \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).