mirror of
https://github.com/aserper/masto-rss.git
synced 2025-12-17 05:15:25 +00:00
Replace responses library HTTP mocking with direct feedparser.parse() mocking to eliminate XML parsing compatibility issues. All integration tests now mock feedparser output directly, avoiding HTTP layer complexity. Changes: - Replace responses.activate decorators with feedparser.parse patches - Mock feed objects directly instead of mocking HTTP responses - Remove responses library dependency from requirements-test.txt - Simplify test setup by eliminating XML string encoding issues This approach provides more reliable testing by directly controlling feedparser behavior rather than relying on HTTP mocking layer.
19 lines
299 B
Plaintext
19 lines
299 B
Plaintext
# Test dependencies for Masto-RSS bot
|
|
# Install with: pip install -r requirements-test.txt
|
|
|
|
# Base requirements
|
|
-r requirements.txt
|
|
|
|
# Testing framework
|
|
pytest==7.4.4
|
|
pytest-cov==4.1.0
|
|
pytest-mock==3.12.0
|
|
|
|
# Code quality
|
|
flake8==7.0.0
|
|
black==24.1.1
|
|
mypy==1.8.0
|
|
|
|
# Coverage reporting
|
|
coverage==7.4.0
|