Stephen Finucane
7c0723fd46
tests: Remove 'tests/run.py'
...
This is no longer necessary. One test needs to be modified to deal with
how 'python -m pytest' modifies the PATH.
Signed-off-by: Stephen Finucane <stephen@that.guru >
2017-12-29 13:02:31 +00:00
Stephen Finucane
529c96a3c9
tests: Use 'pytest_sessionstart'
...
This is the recommended way to do pre-session configuration in pytest if
not using session fixtures [1].
With this, we're able to remove the custom 'test/run.py' script in its
entirety and run 'pytest' like everyone else does. We'll do this
separately to keep things simple.
[1] https://stackoverflow.com/a/12600154/613428
Signed-off-by: Stephen Finucane <stephen@that.guru >
2017-12-29 13:02:26 +00:00
Stephen Finucane
c33ecd1f8f
tests: Use 'pytest_report_header'
...
This is the recommended way to print extra headers [1].
[1] https://docs.pytest.org/en/latest/example/simple.html#adding-info-to-test-report-header
Signed-off-by: Stephen Finucane <stephen@that.guru >
2017-12-29 13:02:07 +00:00
Stephen Finucane
9348c4bea1
tests: Stop explicitly checking for modules
...
This will have already been handled by setuptools. If the user isn't
using this then they've dug their own grave.
Signed-off-by: Stephen Finucane <stephen@that.guru >
2017-12-29 13:02:04 +00:00
Jakob Lykke Andersen
f3c05adebc
C++, fix handling of (templated) operators
2017-12-28 16:50:32 +01:00
Jakob Lykke Andersen
9766c2f339
C++, support the template disambiguator for dependent names.
2017-12-24 16:31:10 +01:00
Takeshi KOMIYA
a9efb2517a
Fix flake8 violations
2017-12-23 21:21:21 +09:00
Jean-François B
f5dfdfcfe2
Merge pull request #4332 from jfbu/latex_math_numfig
...
Let LaTeX obey :confval:`math_numfig` for equation numbering
2017-12-21 19:32:10 +01:00
Christer Bystrom
2d99648e99
Closes #4334 : sphinx-apidoc: Don't generate references to non-existing files in TOC
2017-12-21 19:06:17 +01:00
Takeshi KOMIYA
e2e907b3ee
Fix broken test_autodoc
2017-12-22 00:53:53 +09:00
Takeshi KOMIYA
ffa9d48d0e
Merge branch 'master' into ignore__all__
2017-12-22 00:28:26 +09:00
Takeshi KOMIYA
389b6d2ec1
Merge pull request #4324 from tk0miya/refactor_test_autodoc2
...
test_autodoc: Separate testdata (python objects) and testcases
2017-12-22 00:25:44 +09:00
jfbu
3bb61e9094
Let LaTeX obey :confval:math_numfig for equation numbering
2017-12-21 12:23:20 +01:00
Takeshi KOMIYA
ec240614d9
test_autodoc: Separate testdata (python objects) and testcases
2017-12-21 12:12:13 +09:00
jfbu
43bed034cd
Add test for latex obey numfig_secnum_depth feature
2017-12-20 23:28:24 +01:00
jfbu
0a66d51cbc
Merge branch 'stable'
2017-12-20 21:52:45 +01:00
jfbu
1ee2c2fb95
Re-use some existing test with extras
2017-12-20 21:30:05 +01:00
Kevin Keating
e932ff5ad2
Closes #947 : autodoc now supports ignore-module-all to ignore a module's __all__
2017-12-20 15:07:33 -05:00
Takeshi KOMIYA
e2bf2ef11d
Merge pull request #4166 from jahn/math_numfig
...
Number equations across pages and by section (fix #3991 , #4080 )
2017-12-21 00:39:44 +09:00
Jakob Lykke Andersen
42f557d4b0
Merge branch 'master' of github.com:sphinx-doc/sphinx
2017-12-20 09:06:22 +01:00
Jakob Lykke Andersen
c7a145cc18
C++, handle defaulted constrained template type parameters
2017-12-20 09:05:34 +01:00
Takeshi KOMIYA
7a194f5296
autodoc: Use logging module to emit warnings
2017-12-20 01:40:45 +09:00
Stephen Finucane
c8d56236c9
tests: Ignore roots using 'collect_ignore'
...
This is slightly cleaner than how we're doing this at the moment.
Signed-off-by: Stephen Finucane <stephen@that.guru >
2017-12-18 20:10:18 +00:00
Stephen Finucane
e243e82723
tests: Ignore tests using 'collect_ignore'
...
Per the pytest docs [1], this is the preferred way to ignore tests. This
necessitates removing the 'test-async' target as it no longer makes any
sense.
[1] https://docs.pytest.org/en/latest/example/pythoncollection.html
Signed-off-by: Stephen Finucane <stephen@that.guru >
2017-12-18 20:10:18 +00:00
Stephen Finucane
41c19ddf91
tests: Skip tests with missing binaries
...
While there are already some skips included here, they clearly aren't
doing their job and the test fail locally. Resolve this.
Signed-off-by: Stephen Finucane <stephen@that.guru >
2017-12-18 20:10:18 +00:00
jfbu
245876c6e7
Add test for latex_toplevel_sectioning
2017-12-18 08:27:59 +01:00
Takeshi KOMIYA
464f94c238
deprecate formatargspec() and format_annotation()
2017-12-17 15:25:44 +09:00
Oliver Jahn
44708b03dc
Merge branch 'master' into math_numfig
2017-12-16 11:15:07 -05:00
Takeshi KOMIYA
5bc5b8f013
Merge branch 'stable'
2017-12-16 00:53:55 +09:00
Takeshi KOMIYA
c250c63daa
test: Skip some builders on test_build_all
2017-12-15 21:15:04 +09:00
Takeshi KOMIYA
2a2ed8915a
diet test-root: Move .mo files to new testroot (for test_html_rebuild_mo)
2017-12-15 21:15:02 +09:00
Takeshi KOMIYA
e3bbffc36e
test: Add test_html_copy_source
2017-12-15 02:35:32 +09:00
Takeshi KOMIYA
a3f04c3397
Refactor test_build_html: Use basic project instead roots
2017-12-15 02:35:32 +09:00
Takeshi KOMIYA
a5b64c98af
diet test-root: Remove html_static_path and html_extra_path (duplicated with test-html_assets)
2017-12-15 02:35:32 +09:00
Takeshi KOMIYA
a8ab1f164b
diet test-root: Move testtheme to test-theming
2017-12-15 02:35:32 +09:00
Takeshi KOMIYA
60f3968ef7
diet test-root: Move ziptheme to test-theming
2017-12-15 02:35:32 +09:00
Takeshi KOMIYA
acf5eaae84
Merge pull request #4294 from tk0miya/refactor_parser
...
Refactor docutils components of Sphinx (reader, parser, FileInput and so on).
2017-12-14 23:13:28 +09:00
Takeshi KOMIYA
a82a921d62
Merge pull request #4174 from stephenfin/argparse-integration-continued
...
Argparse integration (continued)
2017-12-14 22:07:28 +09:00
Takeshi KOMIYA
6dae5db9af
Fix SphinxRSTFileInput should expand tabs
2017-12-13 20:49:50 +09:00
Takeshi KOMIYA
07c5348a56
Add test_io.py
2017-12-12 18:24:53 +09:00
jfbu
ad4481eb15
Merge branch 'stable'
2017-12-11 22:54:34 +01:00
jfbu
70f8d4ddfc
Support `:emphasize-lines:` in PDF output ( closes #1238 )
2017-12-10 12:37:36 +01:00
Jakob Lykke Andersen
f3b440777b
C++, support explicit member instantiations
...
See michaeljones/breathe#325
2017-12-04 22:38:37 +01:00
Stephen Finucane
d46273ca4a
quickstart: Rework how we collect extensions
...
This is a little more flexible than the existing set up and makes
maximum use of argparse capabilities.
This has the side-effect of no longer including configuration for the
'sphinx.ext.todo' extension when said extension is not enabled.
Signed-off-by: Stephen Finucane <stephen@that.guru >
2017-12-03 19:24:58 +00:00
Stephen Finucane
4c0f657ee6
quickstart: Rework 'do_prompt' function
...
The 'd' and 'key' values are used on a single line. Move these outside
the function to allow us to do other things with this function.
Signed-off-by: Stephen Finucane <stephen@that.guru >
2017-12-03 19:24:58 +00:00
Jakob Lykke Andersen
0ff217e1b2
C++, fix hyperlinking of nested names
2017-12-01 20:07:35 +01:00
Matthew Fernandez
1b664248f4
update todo extension test to test multiple todolists
...
This tests for regression of previous bug #4214 : Two todolist directives break
sphinx-1.6.5.
2017-11-26 20:54:32 -08:00
Matthew Fernandez
9158a5be1b
remove todo_emit_warnings override from a test that doesn't need it
2017-11-26 20:54:06 -08:00
Jakob Lykke Andersen
d6ec677c61
C++, parse decltype(<expr>)
...
Fixes sphinx-doc/sphinx#4094
2017-11-26 21:41:15 +01:00
Jakob Lykke Andersen
6e721e98fe
C++, parse more unary expressions
...
Last part, fixes sphinx-doc/sphinx#4114
2017-11-26 20:32:24 +01:00