Repository navigation
Add Responsible AI end-to-end tests and fixtures - #138
Merged
vsn411 merged 1 commit intoNov 17, 2026
Merged
Conversation
Leaderboard update
Arush-Banerjee now has 6 points (rank #5). 19 more to reach Bronze. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #132
Adds end-to-end tests for the Responsible AI chain, from a real-shaped report
through the CLI, the
--jsondocument and the dashboard. Test and fixture filesonly; no changes under src/.
What's added
Fixtures (tests/fixtures/reports/):
findings register, six
### [Sev] Fn:findings, coverage notes.tests/test_responsible_ai_end_to_end.py:
secfoo run --skill responsible-ai-compliance --agent claude --jsonthroughfake_popen, for each tier: JSON severity counts, an auto-created assessment
with the right responsible_ai_risk, and
assessment showprintingResponsible AI: low-risk (provisional)."Responsible AI coverage", /activities/responsible-ai-compliance (1 project,
1 run, 6 findings), /assessments list and detail badges.
secfoo assessment update --status completed; reopening returns it toprovisional; deleting the assessment removes it from the page and the count.
(Low then High, High then Low, High then Medium); a failed newer run does not
change it.
secfoo run --assessment <id>attaches to an existing case file and updatesits badge without creating a second one.
tests/test_skills/test_loader_renderer.py:
rubric text, so editing the skill file cannot silently drop one.
Verification
is 100% (line and branch).
rating to one tier fails 12 tests; making the oldest run win fails 3.
ruff checkpasses on the new and changed test files.Notes
run. I can re-seed the Low fixture from a real run against
openai/openai-quickstart-python if you would like that; the counts in the
TIERS table at the top of the test file would be adjusted to match.
secfoo assessment listhas no Responsible AI column today, so its testchecks that the auto-created case file appears with its findings counts. The
rating is covered on
assessment showand in the web list. If you want acolumn in the CLI list, I can add it as a follow-up.
modes, SIGTERM/SIGKILL handling, git path handling in skill packs, a
Hypothesis timing health check and a probe overhead budget). None touch this
change; the new tests pass.