added tests for page selection

This commit is contained in:
Hellow2
2023-03-29 09:42:53 +02:00
parent 0a7dfeb5ea
commit 6c89aabbb5
2 changed files with 56 additions and 2 deletions

View File

@@ -89,7 +89,8 @@ class Search:
exclude_pages: Set[Type[Page]] = set(),
exclude_shady: bool = False,
max_displayed_options: int = 10,
option_digits: int = 3
option_digits: int = 3,
dry: bool = False,
) -> None:
_page_list: List[Type[Page]] = []
_audio_page_list: List[Type[Page]] = []
@@ -115,7 +116,8 @@ class Search:
self._current_option: MultiPageOptions = self.next_options
self.search(query)
if not dry:
self.search(query)
@property
def next_options(self) -> MultiPageOptions: