| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
- Set up Poetry as package manager with pyproject.toml configuration - Add pytest, pytest-cov, and pytest-mock as development dependencies - Configure pytest with coverage reporting (HTML, XML, terminal) - Create test directory structure (unit/integration separation) - Add shared pytest fixtures in conftest.py - Set up test markers (unit, integration, slow) - Create validation tests to verify infrastructure - Update .gitignore with testing and Claude-specific patterns - Add Makefile with convenient test commands
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Add Python Testing Infrastructure
Summary
This PR sets up a comprehensive testing infrastructure for the search-tweets-python project using Poetry as the package manager and pytest as the testing framework. The infrastructure provides a solid foundation for writing and organizing tests with proper coverage reporting and test categorization.
Changes Made
Package Management
Testing Configuration
pytest Configuration:
Coverage Settings:
Directory Structure
tests/ ├── __init__.py ├── conftest.py # Shared pytest fixtures ├── test_setup_validation.py # Infrastructure validation tests ├── unit/ │ └── __init__.py └── integration/ └── __init__.pyShared Fixtures (conftest.py)
Additional Files
How to Use
Installation
# Install all dependencies including dev dependencies poetry installRunning Tests
Writing Tests
Notes
Next Steps