diff options
author | Timotheus Kampik <timotheus.kampik@signavio.com> | 2016-05-02 00:11:48 +0200 |
---|---|---|
committer | Timotheus Kampik <timotheus.kampik@signavio.com> | 2016-05-02 00:11:48 +0200 |
commit | a8dabf334d24f13afd37eb9c2f32b5a14cd125ef (patch) | |
tree | bdff90327ce1755f76d3d8c98dbf8a8f9884100c /tests/test_search.py | |
parent | b01a7be5c689e0b0de5fc465649c17d5b6b51c6f (diff) | |
download | sphinx-git-a8dabf334d24f13afd37eb9c2f32b5a14cd125ef.tar.gz |
add tests for meta-tag search index generation #2463
Diffstat (limited to 'tests/test_search.py')
-rw-r--r-- | tests/test_search.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_search.py b/tests/test_search.py index cd2ff76f2..143a8a273 100644 --- a/tests/test_search.py +++ b/tests/test_search.py @@ -52,3 +52,11 @@ def test_objects_are_escaped(app, status, warning): index = jsdump.loads(searchindex[16:-2]) assert 'n::Array<T, d>' in index.get('objects').get('') # n::Array<T,d> is escaped + +@with_app(testroot='search') +def test_meta_keys_are_handled_for_language(app, status, warning): + app.builder.build_all() + searchindex = (app.outdir / 'searchindex.js').text() + assert 'findnotthiskey' not in searchindex + assert 'findthiskei' in searchindex + assert 'thisonetoo' in searchindex
\ No newline at end of file |