Add test infrastructure post refactoring (issue #24) - #38
Open
atarukun wants to merge 1 commit into
Open
Conversation
- Add development dependencies to pyproject.toml (pytest, flake8, mypy, black, isort) - Configure tool settings in pyproject.toml for all linters - Create .flake8 configuration file with appropriate settings - Add comprehensive test structure with fixtures in conftest.py - Add unit tests for all 4 tool modules (core, message, channel, user) - Add utility tests and integration test framework - Create GitHub Actions workflow for CI/CD with non-blocking linting - Update .gitignore with missing Python patterns (*.pyc, .mypy_cache/) - Configure all linters in notify-only mode as requested - Total of 28 tools confirmed in repository
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.
Summary
This PR implements the test infrastructure as specified in issue #24, adding comprehensive testing capabilities and linting configuration to the Slack MCP project.
Changes Made
1. Development Dependencies
[project.optional-dependencies]section topyproject.toml2. Tool Configuration
pyproject.tomlfor:.flake8configuration file with max-line-length: 120 and appropriate ignores3. Test Infrastructure
tests/directory with proper structureconftest.pywith comprehensive fixtures:test_core.py- Tests for 7 core toolstest_message_management.py- Tests for 8 message toolstest_channel_management.py- Tests for 9 channel toolstest_user_management.py- Tests for 4 user toolstest_utils.pyfor utility function teststest_integration.pyfor integration test framework4. GitHub Actions CI/CD
.github/workflows/test.ymlwith:5. Gitignore Updates
*.pyc,.mypy_cache/Verification
Testing
To run the tests locally:
pip install -e ".[dev]" pytest tests/To run linters (informational only):
Notes
Closes #24