[Sprint 01] refactor: Move tests to repository root and update imports #21

Closed
opened 2026-02-03 22:45:33 +00:00 by lmiranda · 1 comment
Owner

Move test suite from src/gitea_mcp_remote/tests/ to repository root tests/ directory and update all test imports to use new package name.

Dependencies

Tasks

  • Move src/gitea_mcp_remote/tests/ to tests/
  • Update imports in tests/conftest.py
  • Update imports in tests/test_config.py
  • Update imports in tests/test_middleware.py
  • Update imports in tests/test_filtering.py
  • Update pytest.ini to use testpaths = tests
  • Run pytest and verify all tests pass

Acceptance Criteria

  • Tests located at repository root: tests/
  • No tests in src/gitea_mcp_remote/tests/
  • All test imports use gitea_mcp_remote package name
  • All existing tests pass: pytest tests/ -v
  • pytest.ini references testpaths = tests

Implementation Reference

See docs/sprint-proposals/sprint-01-implementation-guide.md - Phase 3, Issues #5-6

Estimated Time: 1-2 hours

Move test suite from `src/gitea_mcp_remote/tests/` to repository root `tests/` directory and update all test imports to use new package name. ## Dependencies - Blocked by: #19, #20 ## Tasks - [ ] Move `src/gitea_mcp_remote/tests/` to `tests/` - [ ] Update imports in `tests/conftest.py` - [ ] Update imports in `tests/test_config.py` - [ ] Update imports in `tests/test_middleware.py` - [ ] Update imports in `tests/test_filtering.py` - [ ] Update `pytest.ini` to use `testpaths = tests` - [ ] Run pytest and verify all tests pass ## Acceptance Criteria - Tests located at repository root: `tests/` - No tests in `src/gitea_mcp_remote/tests/` - All test imports use `gitea_mcp_remote` package name - All existing tests pass: `pytest tests/ -v` - pytest.ini references `testpaths = tests` ## Implementation Reference See `docs/sprint-proposals/sprint-01-implementation-guide.md` - Phase 3, Issues #5-6 **Estimated Time:** 1-2 hours
lmiranda added this to the Sprint 01: Core Architecture Correction milestone 2026-02-03 22:45:33 +00:00
lmiranda added the Component/TestingSize/MType/RefactorPriority/High labels 2026-02-03 22:45:33 +00:00
Author
Owner

Completed and merged in commit c3caf4e (Merge feat/21-move-tests: Move tests to repository root)

Completed and merged in commit c3caf4e (Merge feat/21-move-tests: Move tests to repository root)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: personal-projects/gitea-mcp-remote#21