Skip to content

Add golden test for User/ListRsp with is_bot field - #159

Merged
rjmholt merged 1 commit into
masterfrom
rjmholt/add-user-golden-tests
Apr 3, 2026
Merged

Add golden test for User/ListRsp with is_bot field#159
rjmholt merged 1 commit into
masterfrom
rjmholt/add-user-golden-tests

Conversation

@rjmholt

@rjmholt rjmholt commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds golden test coverage for users.list response deserialization (ListRsp)
  • The fixture includes three users exercising key fields:
    • A human user (is_bot: false) with full profile
    • A bot user (is_bot: true) without a profile
    • A deleted human user (is_bot: false, deleted: true)
  • Exercises the userIsBot field added in Add userIsBot field to User type #158

Test plan

  • All 83 tests pass (82 existing + 1 new golden test)
  • Golden file correctly captures userIsBot = Just True for the bot and Just False for humans

Made with Cursor

@rjmholt
rjmholt requested a review from lf- April 3, 2026 01:46
Covers users.list response deserialization with a fixture
containing a human user, a bot user (is_bot: true), and a
deleted user. Exercises the userIsBot field added in #158.

Made-with: Cursor
@rjmholt
rjmholt force-pushed the rjmholt/add-user-golden-tests branch from a990aee to 45a8d00 Compare April 3, 2026 01:47
@rjmholt
rjmholt requested a review from ldub April 3, 2026 01:54
@rjmholt
rjmholt merged commit eae2e63 into master Apr 3, 2026
6 checks passed
@rjmholt
rjmholt deleted the rjmholt/add-user-golden-tests branch April 3, 2026 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants