Commit Graph

12 Commits

Author SHA1 Message Date
h z
b925b5c07e Merge pull request 'HarborForge.Backend.Test: dev-2026-03-29 -> main' (#3) from dev-2026-03-29 into main
Reviewed-on: #3
2026-04-05 22:11:21 +00:00
zhi
b505fa7b35 BE-PR-010: update proposal tests for feat_task_id deprecation
- Accept tests now create Essentials (required by BE-PR-007)
- Accept tests assert feat_task_id is None (no longer written)
- Added _add_essential helper for test convenience
- Updated test docstrings with BE-PR-010 references
2026-03-30 12:50:00 +00:00
zhi
9cc561e5d5 Fix conftest: import Essential and Proposal models for test DB schema 2026-03-30 11:46:24 +00:00
zhi
9e8dda3f16 BE-PR-001: Update tests for Propose -> Proposal rename
- Tests now use /proposals canonical URL
- Added legacy /proposes backward-compat tests
- Updated class/function names to Proposal terminology
2026-03-29 15:35:47 +00:00
zhi
7b49b17edd chore: ignore Python bytecode and pytest cache 2026-03-20 09:47:40 +00:00
63e3352854 Merge pull request 'Add monitor API tests (B8)' (#2) from feat/monitor-tests into master
Reviewed-on: #2
2026-03-20 09:22:25 +00:00
zhi
ed21b73a43 Add monitor API tests (B8)
- test_monitor.py: 12 test cases covering:
  - API key generation (success, 404, admin-only)
  - heartbeat-v2 endpoint (valid key, invalid key, missing key)
  - API key revocation and validation
  - ServerState data persistence (agents_json, cpu_pct, etc.)
  - Disabled server rejection
- conftest.py: import app.models.monitor for test database setup

All tests passing (pytest -v).
2026-03-19 19:39:15 +00:00
zhi
5f6a3dffe4 test(P14.1): add comprehensive backend API test suite
Add 134 tests as independent test project:
- test_auth.py (5): Login, JWT, protected endpoints
- test_users.py (8): User CRUD, permissions
- test_projects.py (8): Project CRUD, ownership
- test_milestones.py (7): Milestone CRUD, filtering
- test_tasks.py (8): Task CRUD, filtering
- test_comments.py (5): Comment CRUD, permissions
- test_roles.py (9): Role/permission management
- test_milestone_actions.py (17): Milestone state machine
- test_task_transitions.py (34): Task state machine
- test_propose.py (19): Propose CRUD, lifecycle
- test_misc.py (14): Notifications, activity, API keys, dashboard

Setup:
- conftest.py: SQLite in-memory DB, fixtures
- requirements.txt: Dependencies
- pyproject.toml: Pytest config
- README.md: Documentation
2026-03-19 12:43:44 +00:00
477419cb57 Merge pull request 'chore: remove backend submodule' (#1) from chore/remove-backend-submodule into master
Reviewed-on: #1
2026-03-15 16:32:38 +00:00
zhi
211bc73cde chore: remove backend submodule 2026-03-15 16:29:11 +00:00
Zhi
ae9bdd687a add backend submodule 2026-03-13 00:04:45 +00:00
Zhi
c514ee4c3f init 2026-03-13 00:04:16 +00:00