From 3f2449aea165103a88747e5c849d8ca520fe061d Mon Sep 17 00:00:00 2001 From: tegwick Date: Wed, 1 Oct 2025 12:48:48 +0200 Subject: [PATCH] fix: Update tests to match schema reference metadata feature MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix failing tests that expected content to start with heading but now include schema reference comments. Also fix validate command syntax in test (positional to --schema flag). Fixes: - test_generate_stub_with_explicit_associated_path - test_generate_stub_interactive_mode_defaults_to_associated_path - test_generate_stub_validates_generated_draft_against_schema These tests were failing due to changes from Issue #55 schema reference metadata feature and validate command syntax updates. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- tests/test_issue_40_cli_integration.py | 12 ++++++++---- tests/test_issue_55_schema_based_draft_generation.py | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/tests/test_issue_40_cli_integration.py b/tests/test_issue_40_cli_integration.py index 23674b6a..9992ae7c 100644 --- a/tests/test_issue_40_cli_integration.py +++ b/tests/test_issue_40_cli_integration.py @@ -96,9 +96,11 @@ class TestIssue40CLIIntegration: # Should create associated markdown file assert expected_md.exists() - # Verify it's valid markdown + # Verify it's valid markdown with schema reference md_content = expected_md.read_text() - assert md_content.startswith('# ') + # Content should include schema reference metadata and heading + assert '