Skip to content

Comments

Implement test_invalid_target_type#2862

Merged
adamtheturtle merged 1 commit intomainfrom
adamtheturtle/test-invalid-target
Feb 21, 2026
Merged

Implement test_invalid_target_type#2862
adamtheturtle merged 1 commit intomainfrom
adamtheturtle/test-invalid-target

Conversation

@adamtheturtle
Copy link
Member

@adamtheturtle adamtheturtle commented Feb 21, 2026

Summary

Converts the stub test_invalid_target_type into a full integration test that validates InvalidTargetTypeError is raised when attempting to generate a VuMark instance using credentials from a CloudDatabase (non-VuMark) database. This addresses the TODO from vws-python-mock#2961 now that the mock properly enforces VuMark database type checking.

Test Plan

  • New test verifies InvalidTargetTypeError is raised with HTTP 422 status
  • All 17 exception tests pass
  • No pragma: no cover annotations needed removal

🤖 Generated with Claude Code


Note

Low Risk
Test-only change that adds coverage for an existing error case; no production code paths are modified.

Overview
Implements test_invalid_target_type as a real integration test that provisions a CloudDatabase via MockVWS, adds a standard target, and verifies VuMarkService.generate_vumark_instance raises InvalidTargetTypeError with HTTP 422 when used against a non-VuMark database.

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

…hecking

The test verifies that InvalidTargetTypeError is raised when attempting to generate a VuMark instance using credentials from a CloudDatabase (non-VuMark) database. This was previously a stub pending the mock implementation in vws-python-mock#2961.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@adamtheturtle adamtheturtle force-pushed the adamtheturtle/test-invalid-target branch from d0c6538 to a1855bd Compare February 21, 2026 02:25
@adamtheturtle adamtheturtle merged commit 3969418 into main Feb 21, 2026
16 checks passed
@adamtheturtle adamtheturtle deleted the adamtheturtle/test-invalid-target branch February 21, 2026 08:28
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