feat: Set up comprehensive Python testing infrastructure#26
Open
feat: Set up comprehensive Python testing infrastructure#26
Conversation
- Add Poetry package manager with pyproject.toml configuration - Migrate dependencies from requirements.txt to Poetry - Install pytest, pytest-cov, and pytest-mock as dev dependencies - Configure pytest with coverage reporting (80% threshold) - Create testing directory structure (tests/unit, tests/integration) - Add comprehensive shared fixtures in conftest.py - Set up custom test markers (unit, integration, slow) - Update .gitignore with testing-related entries - Add validation tests to verify infrastructure setup - Configure Poetry scripts for running tests 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Set up Python Testing Infrastructure
Summary
This PR sets up a comprehensive testing infrastructure for the MCP Pipe project, migrating from a basic
requirements.txtsetup to a full Poetry-managed development environment with robust testing capabilities.Changes Made
Package Management
pyproject.toml) with proper metadata and dependenciesrequirements.txtto Poetry format^3.10(required formcp-proxycompatibility)pytest,pytest-cov,pytest-mockTesting Configuration
unit,integration,slowfor better test organizationDirectory Structure
tests/(main test directory)tests/unit/(unit tests)tests/integration/(integration tests)__init__.pyfilesShared Testing Utilities
conftest.pywith fixtures for:Development Workflow
poetry run testandpoetry run testscommands.gitignore: Added testing artifacts, build files, IDE settings, and Claude Code configurationTesting Instructions
Running Tests
Using Poetry Scripts
Coverage Reporting
htmlcov/directorycoverage.xmlfor CI/CD integrationDevelopment Notes
mcp-proxydependency requirementspoetry.lockfile is included in version control for reproducible buildsValidation
✅ All validation tests pass
✅ Poetry scripts work correctly
✅ Test markers function properly
✅ Coverage reporting generates successfully
✅ Dependencies install without conflicts
🤖 Generated with Claude Code