summaryrefslogtreecommitdiff
path: root/tests/test_search.py
Commit message (Collapse)AuthorAgeFilesLines
* Allow parallel execution of tests in ``test_search`` (#11292)Martin Liška2023-04-051-0/+3
| | | Add various ``app.builder.build_all()`` calls.
* Remove hidden state from ``test_nosearch`` (#11291)Martin Liška2023-04-051-13/+15
| | | | | | Currently, ``test_nosearch`` depends on ``html_search_language='de'`` from a previous test and thus fails if run individually. Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
* Fix COM812Adam Turner2023-02-181-3/+3
|
* Restore correct parallel search index building (#11192)Jeremy Maitin-Shepard2023-02-151-0/+7
| | | | | | | | | | | | Revert b32841e153431ec02de31e9ec32e79ab3ac7d1c2 to fix parallel search index building The image-related changes were already reverted in 2a7c40d07f4b0e0fd2a4bc942e74634c2df24dee, but the search index changes also need to be reverted. It would be nice to support parallel search index building, but the necessary support for merging the search indices produced by each process needs to be added first.
* Rewrite IndexBuilder loadingAdam Turner2023-01-021-1/+8
|
* Support searching for index entries (#10819)Adam Turner2022-09-201-2/+4
|
* search: support searching for (sub)titles (#10717)Martin Liška2022-09-091-2/+4
| | | Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
* Lint with `flake8-bugbear` (#10602)danieleades2022-07-121-1/+1
| | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* Merge branch '5.x' into fix-warningsAdam Turner2022-05-021-17/+16
|\ | | | | | | | | # Conflicts: # tests/test_search.py
| * Deprecate `sphinx.util.jsdump`Adam Turner2022-04-271-17/+16
| |
* | `.read_text()` -> `.read_text(encoding='utf8')`Adam Turner2022-04-271-4/+4
| |
* | Catch `DeprecationWarning` for `docutils.frontend.OptionParser`Adam Turner2022-04-221-1/+6
|/
* Collapse single line docstringsAdam Turner2022-02-201-2/+1
|
* Remove copyright and licence fieldsAdam Turner2022-02-201-3/+0
|
* Fix module docstring indentationAdam Turner2022-02-201-2/+2
|
* Fix module docstring first lineAdam Turner2022-02-201-2/+1
|
* Remove module titles in docstringsAdam Turner2022-02-191-3/+0
|
* A happy new year!Takeshi KOMIYA2022-01-011-1/+1
|
* search, store objects as array to retain allJakob Lykke Andersen2021-09-251-2/+7
|
* search, test updateJakob Lykke Andersen2021-09-251-55/+63
|
* Merge branch '3.x'Takeshi KOMIYA2021-01-011-1/+1
|\
| * 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
* | Merge branch '3.x'Takeshi KOMIYA2020-11-121-1/+1
|\ \ | |/
| * 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.
* | improve test_nosearchMateusz Lapsa-Malawski2020-08-071-0/+1
| |
* | update testsMateusz Lapsa-Malawski2020-08-071-3/+6
|/
* Close #7025: html search: full text search can be disabled via metadataTakeshi KOMIYA2020-02-221-1/+11
|
* test: Use read_text() and read_bytes()Takeshi KOMIYA2020-02-011-4/+4
|
* A happy new year!Takeshi KOMIYA2020-01-011-1/+1
|
* Merge branch '1.8'Takeshi KOMIYA2019-01-021-1/+1
|\
| * A happy new year!Takeshi KOMIYA2019-01-021-1/+1
| |
* | Merge branch '1.8'jfbu2018-12-281-0/+15
|\ \ | |/ | | | | | | | | | | resolved Conflicts: doc/development/tutorials/todo.rst sphinx/locale/__init__.py sphinx/search/zh.py
| * #5605 fix Chinese search index (#5611)Timotheus Kampik2018-12-251-0/+15
| | | | | | generate search index for Latin words correctly if search language is Chinese
* | 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.
* | Improve JS handling in test_search.pyJon Dufresne2018-11-131-5/+3
| | | | | | | | | | | | | | - Reuse jsload() in all tests to reduce duplication. - Fix -2 index to -1, to include the entire JSON string. Was previously chopping off the final '}'. - Assert the serialized string ends with a closing parenthesis
* | Replace all six.BytesIO with io.BytesIOJon Dufresne2018-09-231-1/+1
| |
* | Remove unnecessary object from class definitionsJon Dufresne2018-09-111-1/+1
|/ | | | | In Python 3, all classes are new-style classes. The object in the definition is redundant and unnecessary.
* Search: make a difference between fullname and dispnameJakob Lykke Andersen2018-06-101-1/+1
|
* Fix flake8 violationsTakeshi KOMIYA2018-02-191-2/+2
|
* A happy new year!Takeshi KOMIYA2018-01-011-1/+1
|
* Fix #4169: Chinese language doesn't trigger Chinese search automaticallyTakeshi KOMIYA2017-10-211-0/+12
|
* Year++Takeshi KOMIYA2017-03-261-1/+1
|
* Fix IndexBuilder.prune() and load() supports _filenames fieldTakeshi KOMIYA2017-02-211-2/+26
|
* Fix #3349: Result of ``IndexBuilder.load()`` is brokenTakeshi KOMIYA2017-02-201-11/+92
|
* Fix flake8 violationsTakeshi KOMIYA2017-01-261-1/+0
|
* pytest: remove deprecated with_app decorator functionsshimizukawa2017-01-061-9/+8
|
* Fix #3039: English stemmer returns wrong word if the word is capitalizedTakeshi KOMIYA2016-10-171-2/+4
|
* Fix #3045: HTML search index creator should ignore "raw" content if now htmlTakeshi KOMIYA2016-10-171-1/+9
|
* allow search hits in body text that are in title of other doc #2891 (#2971)Timotheus Kampik2016-10-111-0/+10
| | | | | | | | * allow search hits in body text that are in title of other doc #2891 * shorten lines/add line breaks #2891 * remove out-commented LoC, simplify check #2891
* Merge branch 'master' into fix-stemming-removes-short-words-from-search-resultsTimotheus Kampik2016-07-101-1/+3
|\