Skip to content

test(groups): mocked error-path coverage for create_group and add_group_member#201

Merged
deveaud-m merged 1 commit into
fossology:mainfrom
Valyrian-Code:test/groups-mocked-errors
Jul 10, 2026
Merged

test(groups): mocked error-path coverage for create_group and add_group_member#201
deveaud-m merged 1 commit into
fossology:mainfrom
Valyrian-Code:test/groups-mocked-errors

Conversation

@Valyrian-Code

Copy link
Copy Markdown
Contributor

Refs #200.

First small step on the test-suite alignment. create_group and add_group_member only covered their error branches through live calls, while the other group endpoints (delete_group, delete_group_member, change_group_member_permission) already have mocked error tests.

This adds mocked 500 tests for both so error-path coverage is consistent across the groups module:

  • test_create_group_error
  • test_add_group_member_error

Verified against a live Fossology 4.4.0 container; ruff and mypy pass. Kept intentionally small, as discussed in #200.

…oup_member

Refs fossology#200.

These two methods only exercised their error branches via live calls, unlike
the other group endpoints (delete_group, delete_group_member,
change_group_member_permission) which already have mocked error tests. Adds
mocked 500 tests for both so error-path coverage is consistent across the
groups module.

Signed-off-by: RAJVEER42 <irajveer.bishnoi2310@gmail.com>
Copilot AI review requested due to automatic review settings July 8, 2026 07:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@deveaud-m deveaud-m merged commit 1b61479 into fossology:main Jul 10, 2026
3 checks passed
@Valyrian-Code Valyrian-Code deleted the test/groups-mocked-errors branch July 10, 2026 16:04
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.

3 participants