Add pytest unit markers and fix all test failures#183
Merged
pythoninthegrass merged 1 commit intomainfrom Feb 26, 2026
Merged
Conversation
- Register pytest markers (unit, integration, e2e, property) in pyproject.toml [tool.pytest.ini_options] - Add pythonpath=[app] to pytest config for import resolution - Update conftest.py with DB bind/mapping mocks to prevent module-level connection attempts - Add shared mock fixtures (mock_db, mock_slack_client, mock_meetup_api, mock_env) - Mark all 12 test_main.py tests with @pytest.mark.unit - Mark all 7 test_meetup_query.py tests with @pytest.mark.unit - Mark integration smoke test with @pytest.mark.integration - Fix test fixtures: TestClient(follow_redirects=False), raw_test_client for auth tests, corrected mock response keys - Fix test assertions and mock targets: load_user side_effect, mocked db_session as both decorator and context manager - Add httpx>=0.27.0,<1 to test dependencies - All 18 unit tests now pass with pytest -m unit (no external services required) Co-Authored-By: Claude Haiku 4.5 <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.
Implements TASK-004: Register pytest markers (unit, integration, e2e, property) in pyproject.toml, mark all 19 tests appropriately, and fix all 18 unit test failures.
Changes:
Tests run: pytest -m unit → 18 passed, 1 deselected (integration)