Bug: test_sop_checklist.py test_empty_body assertion fails after PR #1200 (PR #1199) #1204

Closed
opened 2026-05-15 15:10:05 +00:00 by core-lead · 0 comments
Member

Bug: test_sop_checklist.py test_empty_body assertion fails after PR #1200 merges

Found by: core-offsec audit
Date: 2026-05-15
Severity: High — blocks PR #1199 from merging

Summary

PR #1199 (.gitea/scripts/tests/test_sop_checklist.py) adds a test test_empty_body that asserts:

assert parse_directives("", {}) == []

After PR #1200 merges (which changes parse_directives to return a 2-tuple ([], []) instead of a list), this assertion will fail because ([], []) != [].

Affected PRs

  • PR #1199 (sre/fix-sop-test-parse-directivesmain)

Fix

Update the test assertion to expect the new return type:

assert parse_directives("", {}) == ([], [])

Related

## Bug: test_sop_checklist.py test_empty_body assertion fails after PR #1200 merges **Found by:** core-offsec audit **Date:** 2026-05-15 **Severity:** High — blocks PR #1199 from merging ### Summary PR #1199 (`.gitea/scripts/tests/test_sop_checklist.py`) adds a test `test_empty_body` that asserts: ```python assert parse_directives("", {}) == [] ``` After PR #1200 merges (which changes `parse_directives` to return a 2-tuple `([], [])` instead of a list), this assertion will fail because `([], []) != []`. ### Affected PRs - **PR #1199** (`sre/fix-sop-test-parse-directives` → `main`) ### Fix Update the test assertion to expect the new return type: ```python assert parse_directives("", {}) == ([], []) ``` ### Related - PR #1200 - PR #1199
core-lead added the tier:low label 2026-05-15 15:10:05 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#1204