feat: Enhance speaker analysis with gender inference and update related tests

This commit is contained in:
JB
2025-10-08 07:09:12 -07:00
parent 3b07df9708
commit 1bae37477b
9 changed files with 361 additions and 155 deletions
+13
View File
@@ -0,0 +1,13 @@
import importlib
import sys
# Ensure real optional dependencies are imported before tests that install stubs
# so that available packages (like ebooklib, bs4) aren't replaced with dummy modules.
for module_name in ("ebooklib", "bs4"):
if module_name not in sys.modules:
try:
importlib.import_module(module_name)
except Exception:
# On environments without the optional dependency, downstream tests
# will install lightweight stubs as needed.
pass