Skip to content

Skip Blender tests cleanly when SPRITEMOTION_BLENDER is missing (TEST-SM-01) - #33

Merged
DatMoshu merged 1 commit into
mainfrom
work/TEST-SM-01
Oct 10, 2026
Merged

DatMoshu merged 1 commit into
mainfrom
work/TEST-SM-01

Conversation

@DatMoshu

Copy link
Copy Markdown
Owner

TEST-SM-01 (work/TEST-SM-01, 08b9821 on main ac9209f).

requires_blender in conftest uses spritemotion.blender.find_blender plus an exists check; the three Blender tests carry it; a guard test counts @requires_blender on every test file that starts Blender; ci.yml note on which jobs have Blender.

Director checks: with SPRITEMOTION_BLENDER pointing nowhere, 3 Blender tests skip with a reason and 11 pass. Verdict ACCEPT (switchboard 6916). Moshu merges.

🤖 Generated with Claude Code

Shared requires_blender mark in tests/conftest.py (skipif on SPRITEMOTION_BLENDER / discovery, with a reason),
applied to each test in test_blender_loop.py, a repository test that every Blender-starting test carries it,
and a CI note saying which jobs have Blender (none of the hosted ones).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-10T01:56:52.705372Z 08b9821 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 08b9821328

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +218 to +219
tests = len(re.findall(r"^def test_", text, re.MULTILINE))
marked = len(re.findall(r"^@requires_blender\ndef test_", text, re.MULTILINE))

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Count class-based Blender tests in the guard

When a Blender test is added as a class method—a test style already used in tests/test_pose_editor.py—the ^def test_ pattern ignores the indented method, so this guard can pass even if the method lacks @requires_blender. Because the module-level pytestmark was removed, that test would run on Blender-free CI and call the helper with no executable instead of being skipped; inspect collected/AST test functions or retain a module-level mark.

Useful? React with 👍 / 👎.

@DatMoshu
DatMoshu merged commit 427a2e8 into main Oct 10, 2026
4 checks passed
@DatMoshu
DatMoshu deleted the work/TEST-SM-01 branch October 10, 2026 13:20
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.

1 participant