Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 52 for read_text (0.7 seconds)

  1. scripts/tests/test_translation_fixer/test_header_permalinks/test_header_number_mismatch.py

            cli,
            ["fix-pages", "docs/lang/docs/doc.md"],
        )
        assert result.exit_code == 1
    
        fixed_content = (root_dir / "docs" / "lang" / "docs" / "doc.md").read_text("utf-8")
        expected_content = Path(f"{data_path}/translated_doc_number_gt.md").read_text(
            "utf-8"
        )
    
        assert fixed_content == expected_content  # Translated doc remains unchanged
        assert "Error processing docs/lang/docs/doc.md" in result.output
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Jan 10 22:43:44 GMT 2026
    - 1.9K bytes
    - Click Count (0)
  2. scripts/tests/test_translation_fixer/test_html_links/test_html_links_number_mismatch.py

            ["fix-pages", "docs/lang/docs/doc.md"],
        )
        assert result.exit_code == 1, result.output
    
        fixed_content = (root_dir / "docs" / "lang" / "docs" / "doc.md").read_text("utf-8")
        expected_content = Path(f"{data_path}/translated_doc_number_gt.md").read_text(
            "utf-8"
        )
    
        assert fixed_content == expected_content  # Translated doc remains unchanged
        assert "Error processing docs/lang/docs/doc.md" in result.output
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Jan 10 22:43:44 GMT 2026
    - 1.8K bytes
    - Click Count (0)
  3. scripts/tests/test_translation_fixer/test_markdown_links/test_mkd_links_number_mismatch.py

            ["fix-pages", "docs/lang/docs/doc.md"],
        )
        assert result.exit_code == 1, result.output
    
        fixed_content = (root_dir / "docs" / "lang" / "docs" / "doc.md").read_text("utf-8")
        expected_content = Path(f"{data_path}/translated_doc_number_gt.md").read_text(
            "utf-8"
        )
    
        assert fixed_content == expected_content  # Translated doc remains unchanged
        assert "Error processing docs/lang/docs/doc.md" in result.output
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Jan 10 22:43:44 GMT 2026
    - 1.9K bytes
    - Click Count (0)
  4. scripts/tests/test_translation_fixer/test_code_blocks/test_code_blocks_number_mismatch.py

            ["fix-pages", "docs/lang/docs/doc.md"],
        )
        assert result.exit_code == 1, result.output
    
        fixed_content = (root_dir / "docs" / "lang" / "docs" / "doc.md").read_text("utf-8")
        expected_content = Path(f"{data_path}/translated_doc_number_gt.md").read_text(
            "utf-8"
        )
    
        assert fixed_content == expected_content  # Translated doc remains unchanged
        assert "Error processing docs/lang/docs/doc.md" in result.output
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Jan 10 22:43:44 GMT 2026
    - 1.9K bytes
    - Click Count (0)
  5. scripts/tests/test_translation_fixer/test_code_blocks/test_code_blocks_mermaid.py

        )
        assert result.exit_code == 0, result.output
    
        fixed_content = (root_dir / "docs" / "lang" / "docs" / "doc.md").read_text("utf-8")
        expected_content = Path(
            f"{data_path}/translated_doc_mermaid_translated.md"
        ).read_text("utf-8")
    
        assert fixed_content == expected_content  # Translated doc remains unchanged
        assert (
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Jan 10 22:43:44 GMT 2026
    - 1.8K bytes
    - Click Count (0)
  6. scripts/tests/test_translation_fixer/test_code_blocks/test_code_blocks_lines_number_mismatch.py

            ["fix-pages", "docs/lang/docs/doc.md"],
        )
        assert result.exit_code == 1, result.output
    
        fixed_content = (root_dir / "docs" / "lang" / "docs" / "doc.md").read_text("utf-8")
        expected_content = Path(f"{data_path}/translated_doc_lines_number_gt.md").read_text(
            "utf-8"
        )
    
        assert fixed_content == expected_content  # Translated doc remains unchanged
        assert "Error processing docs/lang/docs/doc.md" in result.output
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Jan 10 22:43:44 GMT 2026
    - 1.9K bytes
    - Click Count (0)
  7. scripts/tests/test_translation_fixer/test_code_blocks/test_code_blocks_wrong_lang_code.py

            ["fix-pages", "docs/lang/docs/doc.md"],
        )
        assert result.exit_code == 1, result.output
    
        fixed_content = (root_dir / "docs" / "lang" / "docs" / "doc.md").read_text("utf-8")
        expected_content = Path(f"{data_path}/translated_doc_wrong_lang_code.md").read_text(
            "utf-8"
        )
    
        assert fixed_content == expected_content  # Translated doc remains unchanged
        assert "Error processing docs/lang/docs/doc.md" in result.output
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Jan 10 22:43:44 GMT 2026
    - 1.9K bytes
    - Click Count (0)
  8. scripts/tests/test_translation_fixer/test_complex_doc/test_compex_doc.py

            ["fix-pages", "docs/lang/docs/doc.md"],
        )
        assert result.exit_code == 0, result.output
    
        fixed_content = (root_dir / "docs" / "lang" / "docs" / "doc.md").read_text("utf-8")
        expected_content = (data_path / "translated_doc_expected.md").read_text("utf-8")
        assert fixed_content == expected_content
    
        assert "Fixing multiline code blocks in" in result.output
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Jan 10 22:43:44 GMT 2026
    - 902 bytes
    - Click Count (0)
  9. scripts/tests/test_translation_fixer/test_header_permalinks/test_header_level_mismatch.py

            ["fix-pages", "docs/lang/docs/doc.md"],
        )
        assert result.exit_code == 1
    
        fixed_content = (root_dir / "docs" / "lang" / "docs" / "doc.md").read_text("utf-8")
        expected_content = Path(
            f"{data_path}/translated_doc_level_mismatch_1.md"
        ).read_text("utf-8")
    
        assert fixed_content == expected_content  # Translated doc remains unchanged
        assert "Error processing docs/lang/docs/doc.md" in result.output
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Jan 10 22:43:44 GMT 2026
    - 2K bytes
    - Click Count (0)
  10. scripts/tests/test_translation_fixer/test_code_includes/test_number_mismatch.py

            cli,
            ["fix-pages", "docs/lang/docs/doc.md"],
        )
        assert result.exit_code == 1
    
        fixed_content = (root_dir / "docs" / "lang" / "docs" / "doc.md").read_text("utf-8")
        expected_content = Path(f"{data_path}/translated_doc_number_gt.md").read_text(
            "utf-8"
        )
    
        assert fixed_content == expected_content  # Translated doc remains unchanged
        assert "Error processing docs/lang/docs/doc.md" in result.output
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Jan 10 22:43:44 GMT 2026
    - 1.9K bytes
    - Click Count (0)
Back to Top