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 POST projects/task-split endpoint #1702

Merged
merged 1 commit 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 #1613

Describe this PR

Added a test for splitting a task into subtasks with POST /projects/task-split endpoint.
Organisation fixture have been refactored to avoid duplication.

Screenshots

Screenshot 2024-07-24 at 17 04 05

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?

Copy link
Member

@spwoodcock spwoodcock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice testing for the 422 too πŸ™Œ

@spwoodcock spwoodcock merged commit 15036c7 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