Skip to content

Add @beartype to test helper functions#2988

Merged
adamtheturtle merged 1 commit intomainfrom
add-beartype-to-test-helpers
Feb 22, 2026
Merged

Add @beartype to test helper functions#2988
adamtheturtle merged 1 commit intomainfrom
add-beartype-to-test-helpers

Conversation

@adamtheturtle
Copy link
Member

@adamtheturtle adamtheturtle commented Feb 22, 2026

Summary

  • Add @beartype decorator to non-fixture test helper functions that were missing runtime type checking
  • Affected helpers: processing_time_seconds, make_image_file, Endpoint.send, assert_vwq_failure, _wait_for_target_processed, _delete_all_targets

Test plan

  • CI passes with existing tests

Made with Cursor


Note

Low Risk
Test-only changes that add runtime type validation; main risk is newly raised type errors causing previously-passing tests to fail.

Overview
Adds @beartype runtime type checking to several test-only helper functions (_wait_for_target_processed, _delete_all_targets, Endpoint.send, make_image_file, assert_vwq_failure, processing_time_seconds) and updates imports accordingly.

This tightens test validation by surfacing incorrect argument/return types earlier during test execution without changing production code paths.

Written by Cursor Bugbot for commit 76dbaa1. This will update automatically on new commits. Configure here.

Add runtime type checking to non-fixture test helpers that were
missing it: processing_time_seconds, make_image_file, Endpoint.send,
assert_vwq_failure, _wait_for_target_processed, _delete_all_targets.

Co-authored-by: Cursor <cursoragent@cursor.com>
@adamtheturtle adamtheturtle enabled auto-merge (squash) February 22, 2026 01:01
@adamtheturtle adamtheturtle merged commit d7f7674 into main Feb 22, 2026
106 checks passed
@adamtheturtle adamtheturtle deleted the add-beartype-to-test-helpers branch February 22, 2026 01:07
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