Takeshi KOMIYA
e4ecb97d5a
refactor testcase for config
2018-03-23 23:41:09 +09:00
Takeshi KOMIYA
ba83214386
Refactor: Add Config.read() as a constructor
...
To simplify Config.__init__() method, this separates conf.py parsing
feature to Config.read() method.
This allows to instantiate config object simply.
2018-03-23 23:40:28 +09:00
Takeshi KOMIYA
f7027049b1
Fix flake8 violations
2018-02-19 23:20:56 +09:00
Takeshi KOMIYA
f1f6ca8cc9
Merge branch 'happy_new_year' into master
2018-01-01 01:09:17 +09:00
Takeshi KOMIYA
2426cedb8b
A happy new year!
2018-01-01 01:06:58 +09:00
Takeshi KOMIYA
d7d2e823fc
sphinx.config.ENUM allows to validate items of lists or tuples
2017-10-29 22:23:15 +09:00
shimizukawa
d497d74370
refs #3458 : add sphinx.testing that are moved from /tests directory.
2017-05-14 20:47:15 +09:00
Takeshi KOMIYA
8f9dd64992
Merge branch 'stable'
2017-03-26 11:52:15 +09:00
Takeshi KOMIYA
c57e47e042
Year++
2017-03-26 11:49:34 +09:00
Takeshi KOMIYA
d33cf04979
Merge branch 'stable'
2017-01-29 18:05:17 +09:00
Takeshi KOMIYA
cf2061dfad
Fix flake8 violations
2017-01-26 01:13:17 +09:00
Takeshi KOMIYA
8cbe1efe8d
Merge branch 'stable'
2017-01-10 01:04:21 +09:00
shimizukawa
561abdd164
pytest optimizatoin:
...
- remote using deprecated decorators
- remove gen_with_app
- remove yield testing
- remove pytest warnings
- refactoring
2017-01-08 15:14:38 +09:00
shimizukawa
4c22cd10ca
Merge branch 'stable'
2017-01-07 02:14:29 +09:00
shimizukawa
baaef9146d
pytest: remove deprecated with_app decorator functions
2017-01-06 01:14:47 +09:00
shimizukawa
f962ad67d2
pytest: remove deprecated raises and raises_msg assert functions
2017-01-06 00:46:42 +09:00
shimizukawa
d0a33dd785
pytest: remove deprecated with_tempdir decorator
2017-01-06 00:26:01 +09:00
shimizukawa
5b7d237db3
pytest migration
2017-01-04 00:59:30 +09:00
Takeshi KOMIYA
85dcd7baa8
Use sphinx.util.logging instead app.warn()
2017-01-02 12:59:50 +09:00
shimizukawa
487f3db5f6
To simplify, sphinx uses external mock package even if unittest.mock exists.
2016-10-15 16:22:27 +09:00
Takeshi KOMIYA
5991bbe4ac
Add sphinx.config.ENUM to check the config values is in candidates
2016-07-07 23:42:49 +09:00
Takeshi KOMIYA
88c026d0bd
Merge branch 'stable'
2016-06-12 00:42:47 +09:00
Takeshi KOMIYA
80921b2ab8
Fix flake8 violation under tests/
2016-06-12 00:02:11 +09:00
Takeshi KOMIYA
e3def45ffe
Use locales
as a default value of locale_dirs
2016-04-25 22:25:58 +09:00
shimizukawa
0c33d7df78
import mock from util instead of directly.
2016-04-02 22:15:13 +09:00
Takeshi KOMIYA
606daeda18
Fix the confval type checker emits warnings if unicode is given to confvals which expects string value
2016-02-23 11:14:58 +09:00
Takeshi KOMIYA
04a8c26eab
Fix #2235 : `needs_sphinx
` supports micro version comparison
2016-01-21 13:51:17 +09:00
Georg Brandl
4f72bdb722
Merge branch 'stable'
2016-01-14 22:54:08 +01:00
Georg Brandl
46d7e8558e
Obligatory copyright update.
2016-01-14 22:54:04 +01:00
Robert Lehmann
c5f412f491
Fix typo.
2015-10-09 08:24:17 +02:00
Robert Lehmann
ca655f31a8
Fixes #1984 : Hint None being valid for primary_domain.
2015-09-11 09:56:09 +02:00
Robert Lehmann
8b00f57f4d
Fixed #1786 : Add configurable type hints.
...
This adds the option of giving, in addition to the type of the default
value, hints about permissible types for configuration values.
2015-09-11 09:51:14 +02:00
Georg Brandl
1d7db8da46
fixup test suite for already-registered warnings
2015-07-22 19:34:37 +02:00
Georg Brandl
a23903d8d5
Merge branch 'stable'
2015-01-03 21:41:14 +01:00
Georg Brandl
567d52f199
all: update copyright
2015-01-03 21:36:32 +01:00
Takayuki Shimizukawa
32e4fab86b
fix py3 error for pull request #314
2014-12-04 17:26:13 +09:00
Robert Lehmann
c528b65292
Refactor tests.
2014-11-09 09:55:56 +01:00
Robert Lehmann
ed5f77916f
Spec out configuration type checks.
2014-11-05 14:33:30 +01:00
Robert Lehmann
5cc72ca52b
Checked configuration values for their types. Fixes #1150 .
2014-10-30 15:46:02 +01:00
Georg Brandl
d47a7587f9
Complete test suite overhaul.
...
* rename a few test modules to make the names more consistent
* do not copy/use Sphinx from build/ (unnecessary without 2to3)
* use a temporary dir for *all* test projects, the source tree
will stay pristine that way (default is tests/build)
* speed up tests by ~3x by splitting up test projects and avoiding
rebuilds
2014-09-21 17:17:02 +02:00
Takayuki Shimizukawa
da20c3713b
merge with stable
2014-07-13 11:43:12 +09:00
Takayuki Shimizukawa
f781f55b28
* With non-callable setup
in a conf.py, now sphinx-build emits user-friendly error message. Closes #1499
2014-06-30 22:54:28 +09:00
Takayuki Shimizukawa
ba4dcaa8dd
use b prefix for bytes instead of sphinx.pycompat.b function.
2014-05-01 22:54:09 +09:00
Takayuki Shimizukawa
1e58062692
remove 'six' name except importing line.
2014-04-30 21:30:46 +09:00
Takayuki Shimizukawa
68290a266c
introduce the six module and reduce sphinx.util.pycompat implementation. refs #1350 .
2014-04-29 11:46:47 +09:00
Takayuki Shimizukawa
1e4b390b22
remove tests.util.write_file duplicated implementation.
2014-04-28 19:58:26 +09:00
Georg Brandl
ac92719ac3
Update copyright year.
2014-03-01 08:18:23 +01:00
Georg Brandl
e030031321
Update copyright year.
2014-03-01 08:18:16 +01:00
Georg Brandl
8fdcb803cf
d98e70c13eff followup: only do type conversion of confoverrides if the values are strings and add a test
2014-01-10 22:10:29 +01:00
Georg Brandl
1af3e3ea71
tests: replace "from util import *" by explicit imports
2013-04-01 11:39:32 +02:00