Skip to content

test(sam3): add tests for class_mapping feature in SAM3 v3 block#2202

Open
felipe-tomino wants to merge 1 commit intomainfrom
tomino/sam3-class-mapping
Open

test(sam3): add tests for class_mapping feature in SAM3 v3 block#2202
felipe-tomino wants to merge 1 commit intomainfrom
tomino/sam3-class-mapping

Conversation

@felipe-tomino
Copy link
Copy Markdown
Contributor

Summary

Follow-up to #2196 — adds comprehensive tests for the class_mapping feature as requested in review.

  • 2 manifest validation tests (with/without class_mapping)
  • 6 _apply_class_mapping unit tests (full, partial, no-match, multi-image, empty result, empty mapping)
  • 3 block-level run() tests (mocking run_locally, verifying class_mapping applied end-to-end)

Test plan

  • All 11 tests pass locally: pytest tests/workflows/unit_tests/core_steps/models/foundation/test_segment_anything3_v3.py -v

Adds block-level tests that exercise the full run() method with
class_mapping (mocking run_locally), plus manifest validation tests.
Refactored to match repo patterns: pytest fixtures, top-level functions,
docstrings.
@felipe-tomino
Copy link
Copy Markdown
Contributor Author

This PR addresses this comment from @dkosowski87

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