Skip to content

Conversation

@SilverRainZ
Copy link
Member

Summary

Add smoke tests to verify the data:template and data:define directives work correctly.

Changes

  • tests/conftest.py: Configure Sphinx pytest fixtures and set test root directory
  • tests/test_smoke.py: Add smoke tests using @pytest.mark.sphinx fixture
  • tests/roots/test-smoke/: Add test fixtures (RST files and config)

Tests

  1. test_data_template_and_define: Verifies that data:template and data:define directives render data correctly
  2. test_schema_validation: Expected failure test for schema validation (not yet implemented)

Checklist

  • Tests pass
  • Lint check passes

- Add pytest fixture configuration for Sphinx testing
- Add smoke test verifying data:template and data:define render correctly
- Add xfail test for schema validation (not yet implemented)

Co-authored-by: MiniMax-M2.1 <models@minimax.io>
Co-authored-by: opencode <hello@anoma.ly>
Test data template and define directives with parsing, parsed, and resolving phases.

Co-authored-by: MiniMax-M2.1 <minimax-cn-coding-plan@outlook.com>
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