Skip to content

Add integration test for the follow endpoint correctly incrementing and decrementing follower counts #697

Description

@Chucks1093

Summary

The follow and unfollow endpoints update the follower count on the creator's profile. An integration test should confirm the count increments on follow, decrements on unfollow, and that double-following or double-unfollowing is idempotent.

Scope

  • Follow a creator and assert follower count increments by 1
  • Follow the same creator again and assert the count does not increment a second time
  • Unfollow the creator and assert the count decrements by 1
  • Unfollow again and assert the count does not go below 0
  • Assert an unauthenticated request to follow returns 401

Acceptance Criteria

  • Follow increments count by 1
  • Double follow is idempotent (count not incremented twice)
  • Unfollow decrements count by 1
  • Double unfollow is idempotent (count does not go below 0)
  • Unauthenticated follow returns 401

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions