Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test coverage for updating the task status endpoint #1703

Merged
merged 2 commits into from
Jul 24, 2024

Conversation

azharcodeit
Copy link
Collaborator

What type of PR is this? (check all applicable)

  • πŸ• Feature
  • πŸ› Bug Fix
  • πŸ“ Documentation
  • πŸ§‘β€πŸ’» Refactor
  • βœ… Test
  • πŸ€– Build or CI
  • ❓ Other (please specify)

Related Issue

Related to Issue #1614

Describe this PR

Added a test to verify that the task status can be updated correctly and that the
POST /tasks/{task_id}/new-status/{status} endpoint returns the expected results.

Screenshots

Screenshot 2024-07-24 at 17 31 55

Alternative Approaches Considered

Did you attempt any other approaches that are not documented in code?

Review Guide

Command to run all tests defined in the project using pytest:

docker compose run --rm api pytest

Checklist before requesting a review

[optional] What gif best describes this PR or how it makes you feel?

@spwoodcock spwoodcock merged commit dcbecc6 into hotosm:development Jul 24, 2024
4 of 5 checks passed
@spwoodcock spwoodcock added the tests Related to automated code tests label Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Related to backend code tests Related to automated code tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants