Skip to content

GET /tasks status filter returns empty results for status=open #2

Description

@venkataramasu

Summary

GET /tasks?status=open returns an empty list instead of open tasks.

Intended outcome

Filtering by status=open should return only tasks whose status is open.

Actual outcome

The endpoint returns [].

Reproduction steps

  1. Install deps: python3 -m pip install -r requirements.txt
  2. Run tests: pytest -v tests/test_api.py
  3. Observe failure in test_list_tasks_filters_by_status

Repro logs

tests/test_api.py::test_list_tasks_filters_by_status FAILED

>       assert [task["id"] for task in payload] == [1, 3, 4]
E       AssertionError: assert [] == [1, 3, 4]

Notes

This is currently captured by automated HTTP-level test coverage in tests/test_api.py.

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