Gap: Missing test coverage for project_commands.py and auth_commands.py #11

Closed
opened 2026-05-09 05:18:50 +00:00 by Mark · 0 comments
Owner

Severity: Low

The test suite covers task_commands.py, config_manager.py, and api_client.py, but there are no tests for:

  • project_commands.py (all handlers)
  • auth_commands.py (login, configure, show handlers)
  • help_commands.py

Files missing tests:

  • tests/test_project_commands.py (does not exist)
  • tests/test_auth_commands.py (does not exist)

These command handlers contain display logic, error handling, and config interactions that should be tested. The mocking patterns already established in test_task_commands.py (using MockArgs, @patch, capsys) can be reused.

Recommended test coverage:

  • test_project_commands.py: list/create/get/update/delete, views, buckets, users, teams, webhooks, shares
  • test_auth_commands.py: login (success/failure), configure, show_config with token masking
**Severity: Low** The test suite covers `task_commands.py`, `config_manager.py`, and `api_client.py`, but there are no tests for: - `project_commands.py` (all handlers) - `auth_commands.py` (login, configure, show handlers) - `help_commands.py` **Files missing tests:** - `tests/test_project_commands.py` (does not exist) - `tests/test_auth_commands.py` (does not exist) These command handlers contain display logic, error handling, and config interactions that should be tested. The mocking patterns already established in `test_task_commands.py` (using `MockArgs`, `@patch`, `capsys`) can be reused. **Recommended test coverage:** - `test_project_commands.py`: list/create/get/update/delete, views, buckets, users, teams, webhooks, shares - `test_auth_commands.py`: login (success/failure), configure, show_config with token masking
Mark closed this issue 2026-05-15 16:46:49 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Mark/vikunja-cli#11
No description provided.