summaryrefslogtreecommitdiff
path: root/tests/conftest.py
Commit message (Collapse)AuthorAgeFilesLines
* A happy new year!Takeshi KOMIYA2021-01-011-1/+1
| | | | | | | .. note:: $ find sphinx tests LICENSE doc/conf.py -type f -exec sed -i '' -e 's/2007\-20../2007-2021/' {} \; $ git co sphinx/locale/**/*.js sphinx/templates/epub3/mimetype
* Sort imports with isortFrançois Freitag2020-11-111-1/+1
| | | | | | | | | | | | Keep imports alphabetically sorted and their order homogeneous across Python source files. The isort project has more feature and is more active than the flake8-import-order plugin. Most issues caught were simply import ordering from the same module. Where imports were purposefully placed out of order, tag with isort:skip.
* A happy new year!Takeshi KOMIYA2020-01-011-1/+1
|
* refactor: tests/conftest.pyTakeshi KOMIYA2019-02-071-1/+1
|
* test: clear SPHINX_TEST_TEMPDIR before testingTakeshi KOMIYA2019-02-071-0/+16
|
* Show tempdir header on testing (refs: #5902)Takeshi KOMIYA2019-02-011-2/+6
|
* Stop to use $SPHINX_TEST_TEMPDIR envvarTakeshi KOMIYA2019-01-131-19/+0
| | | | | | | | At once, we added $SPHINX_TEST_TEMPDIR to keep intermediate files of testing to investigate the failures. At present, we've used pytest as a test runner. And it keeps temporary directories of last 3 testings. So this starts to use it instead of $SPHINX_TEST_TEMPDIR. https://docs.pytest.org/en/latest/tmpdir.html#the-default-base-temporary-directory
* Add PathComparer for testing and fix 2 test failure on Windows. (#5943)Takayuki SHIMIZUKAWA2019-01-131-0/+5
| | | | | | | | | commits are squashed. * Add PathComparer for testing and fix 2 test failure on Windows. * fix flake8 * add type information by f2f review. Thanks to @tk0miya! * fix mypy, flake8 again..
* Merge branch '1.8'Takeshi KOMIYA2019-01-021-1/+1
|\
| * A happy new year!Takeshi KOMIYA2019-01-021-1/+1
| |
* | Remove unnecessary encoding cookie from Python source filesJon Dufresne2018-12-161-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In Python 3, the default encoding of source files is utf-8. The encoding cookie is now unnecessary and redundant so remove it. For more details, see the docs: https://docs.python.org/3/howto/unicode.html#the-string-type > The default encoding for Python source code is UTF-8, so you can > simply include a Unicode character in a string literal ... Includes a fix for the flake8 header checks to stop expecting an encoding cookie.
* | Remove dead code `or '.'`Jon Dufresne2018-11-121-1/+1
| | | | | | | | | | The expression `os.path.dirname(__file__)` always evaluates as a truthy value. The `or '.'` is never evaluated.
* | Drop branches for sys.version_info < (3, 4)Takeshi KOMIYA2018-09-221-8/+0
|/
* Improve pytest headerTakeshi KOMIYA2018-08-261-2/+4
|
* Fix flake8 violationsTakeshi KOMIYA2018-02-191-1/+1
|
* Fix #4260: autodoc: keyword only argument separator is not disappearedTakeshi KOMIYA2018-02-131-0/+3
|
* Update PYTHONWARNINGS on tox.ini to reduce meaningless warningsTakeshi KOMIYA2018-01-061-9/+0
|
* Merge branch 'happy_new_year' into masterTakeshi KOMIYA2018-01-011-1/+1
|\
| * A happy new year!Takeshi KOMIYA2018-01-011-1/+1
| |
* | Resolve warning filter issuesStephen Finucane2017-12-291-2/+0
| | | | | | | | | | | | | | | | | | | | | | There's an issue with 'pkgutils' and namespace packages. This has been reported against setuptools [1], but until this is resolved, we simply need to live with it. Ensure said warnings are filtered from tox too and remove some unnecessary ones. [1] https://github.com/pypa/setuptools/issues/1111 Signed-off-by: Stephen Finucane <stephen@that.guru>
* | tests: Use 'pytest_sessionstart'Stephen Finucane2017-12-291-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | tests: Use 'pytest_report_header'Stephen Finucane2017-12-291-0/+5
| | | | | | | | | | | | | | | | 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>
* | tests: Ignore roots using 'collect_ignore'Stephen Finucane2017-12-181-1/+4
| | | | | | | | | | | | This is slightly cleaner than how we're doing this at the moment. Signed-off-by: Stephen Finucane <stephen@that.guru>
* | tests: Ignore tests using 'collect_ignore'Stephen Finucane2017-12-181-0/+5
|/ | | | | | | | | | 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>
* refs #3458: add sphinx.testing that are moved from /tests directory.shimizukawa2017-05-141-223/+13
|
* test: Replace app.buildername by app.builder.nameTakeshi KOMIYA2017-03-261-1/+1
|
* pytest: update by reviewingshimizukawa2017-01-091-28/+13
| | | | | | * remove 'specific_srcdir' feature * simplify 'shared_result' feature * rename 'AppWrapper' into 'SphinxTestAppWrapperForSkipBuilding'
* pytest optimizatoin:shimizukawa2017-01-081-9/+146
| | | | | | | | - remote using deprecated decorators - remove gen_with_app - remove yield testing - remove pytest warnings - refactoring
* pytest: nitsshimizukawa2017-01-061-1/+1
|
* pytest: remove unused testing feature for a while.shimizukawa2017-01-051-125/+2
|
* pytest migrationshimizukawa2017-01-041-0/+231