Skip to content

Add tests for project/section selection flags and warning when --project_id is ignored #141

Description

@robbarry

Title: Add tests for project/section selection flags and warn when --project_id is ignored

Summary

  • Add integration tests that cover doist add with:
    • --project/-P fuzzy selection
    • --project_id direct selection
    • --section/-S and --section_id when applicable
  • Emit a user-facing warning when both -P/--project and --project_id are provided that the explicit ID is ignored.

Rationale
These flags were introduced to improve UX when creating tasks. Tests will prevent regressions and clarify expected behavior. A warning will help avoid confusion when multiple selection inputs are provided.

Acceptance Criteria

  • Tests are added in tests/commands to validate the flags’ behavior and output.
  • CLI emits a clear warning when --project_id is provided together with -P/--project.
  • CI passes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions