Tests added, see the documentation in the tests directory for details. Improved the socket code.

This commit is contained in:
Storm Dragon
2025-12-03 02:51:49 -05:00
parent 2092a3e257
commit bf0d134187
12 changed files with 1622 additions and 30 deletions

21
tests/requirements.txt Normal file
View File

@@ -0,0 +1,21 @@
# Test dependencies for Fenrir screen reader
# Install with: pip install -r tests/requirements.txt
# Core testing framework (required)
pytest>=7.0.0
# Optional but recommended plugins
pytest-cov>=4.0.0 # Coverage reporting (pytest --cov)
pytest-mock>=3.10.0 # Enhanced mocking utilities
pytest-timeout>=2.1.0 # Timeout for hanging tests (pytest --timeout)
pytest-xdist>=3.0.0 # Parallel test execution (pytest -n auto)
# Additional testing utilities (optional)
freezegun>=1.2.0 # Time mocking
responses>=0.22.0 # HTTP mocking (for future web features)
# Minimal install (just pytest):
# pip install pytest
#
# Full install (all features):
# pip install -r tests/requirements.txt