summaryrefslogtreecommitdiff
path: root/tests/test_search.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_search.py')
-rw-r--r--tests/test_search.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/test_search.py b/tests/test_search.py
index a363b30be..d4b8817de 100644
--- a/tests/test_search.py
+++ b/tests/test_search.py
@@ -114,4 +114,12 @@ def test_term_in_heading_and_section(app, status, warning):
# both documents should be a hit in the search index as a title,
# respectively text hit
assert 'textinhead:1' in searchindex
- assert 'textinhead:0' in searchindex \ No newline at end of file
+ assert 'textinhead:0' in searchindex
+
+
+@with_app(testroot='search')
+def test_term_in_raw_directive(app, status, warning):
+ searchindex = jsload(app.outdir / 'searchindex.js')
+ assert not is_registered_term(searchindex, 'raw')
+ assert is_registered_term(searchindex, 'rawword')
+ assert not is_registered_term(searchindex, 'latex_keyword')