Skip to content

Commit 3f15cfa

Browse files
committed
TST: Fix failing lunr_search test
Iteration order of `os.walk()` is platform dependent.
1 parent 2e08bd8 commit 3f15cfa

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pdoc/test/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,8 @@ def test_lunr_search(self):
254254
files = self.PUBLIC_FILES + ["doc-search.html", "index.js"]
255255
self._basic_html_assertions(expected_files=files)
256256
self._check_files(exclude_patterns=['class="gcse-search"'])
257-
self._check_files(
258-
include_patterns=['URLS=[\n"example_pkg/index.html",\n'
259-
'"example_pkg/module.html",\n"example_pkg/subpkg/index.html"'],
260-
file_pattern='index.js')
257+
self._check_files(include_patterns=['URLS=[\n"example_pkg/index.html",\n"example_pkg/'],
258+
file_pattern='index.js')
261259
self._check_files(include_patterns=["'../doc-search.html#'"],
262260
file_pattern='example_pkg/index.html')
263261
self._check_files(include_patterns=["'../doc-search.html#'"],

0 commit comments

Comments
 (0)