Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 55 for parametrizar (0.13 seconds)

  1. tests/test_request_params/test_path/test_required_str.py

    @app.get("/required-alias-and-validation-alias/{p_val_alias}")
    def read_required_alias_and_validation_alias(
        p: Annotated[str, Path(alias="p_alias", validation_alias="p_val_alias")],
    ):
        return {"p": p}
    
    
    @pytest.mark.parametrize(
        ("path", "expected_name", "expected_title"),
        [
            pytest.param("/required-str/{p}", "p", "P", id="required-str"),
            pytest.param(
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Feb 09 15:35:43 GMT 2026
    - 2.4K bytes
    - Click Count (0)
  2. scripts/tests/test_translation_fixer/test_html_links/test_html_links_number_mismatch.py

    import pytest
    from typer.testing import CliRunner
    
    from scripts.translation_fixer import cli
    
    data_path = Path("scripts/tests/test_translation_fixer/test_html_links/data").absolute()
    
    
    @pytest.mark.parametrize(
        "copy_test_files",
        [(f"{data_path}/en_doc.md", f"{data_path}/translated_doc_number_gt.md")],
        indirect=True,
    )
    def test_gt(runner: CliRunner, root_dir: Path, copy_test_files):
        result = runner.invoke(
    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

    import pytest
    from typer.testing import CliRunner
    
    from scripts.translation_fixer import cli
    
    data_path = Path(
        "scripts/tests/test_translation_fixer/test_markdown_links/data"
    ).absolute()
    
    
    @pytest.mark.parametrize(
        "copy_test_files",
        [(f"{data_path}/en_doc.md", f"{data_path}/translated_doc_number_gt.md")],
        indirect=True,
    )
    def test_gt(runner: CliRunner, root_dir: Path, copy_test_files):
        result = runner.invoke(
    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_mermaid.py

    import pytest
    from typer.testing import CliRunner
    
    from scripts.translation_fixer import cli
    
    data_path = Path(
        "scripts/tests/test_translation_fixer/test_code_blocks/data"
    ).absolute()
    
    
    @pytest.mark.parametrize(
        "copy_test_files",
        [(f"{data_path}/en_doc.md", f"{data_path}/translated_doc_mermaid_translated.md")],
        indirect=True,
    )
    def test_translated(runner: CliRunner, root_dir: Path, copy_test_files):
    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)
  5. tests/test_file_and_form_order_issue_9116.py

        f.write_text("foo")
        return f
    
    
    @pytest.fixture
    def tmp_file_2(tmp_path: Path) -> Path:
        f = tmp_path / "example2.txt"
        f.write_text("bar")
        return f
    
    
    @pytest.mark.parametrize("endpoint_path", ("/file_before_form", "/file_after_form"))
    def test_file_form_order(endpoint_path: str, tmp_file_1: Path):
        response = client.post(
            url=endpoint_path,
            data={"city": "Thimphou"},
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  6. scripts/tests/test_translation_fixer/test_code_blocks/test_code_blocks_lines_number_mismatch.py

    import pytest
    from typer.testing import CliRunner
    
    from scripts.translation_fixer import cli
    
    data_path = Path(
        "scripts/tests/test_translation_fixer/test_code_blocks/data"
    ).absolute()
    
    
    @pytest.mark.parametrize(
        "copy_test_files",
        [(f"{data_path}/en_doc.md", f"{data_path}/translated_doc_lines_number_gt.md")],
        indirect=True,
    )
    def test_gt(runner: CliRunner, root_dir: Path, copy_test_files):
    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

    import pytest
    from typer.testing import CliRunner
    
    from scripts.translation_fixer import cli
    
    data_path = Path(
        "scripts/tests/test_translation_fixer/test_code_blocks/data"
    ).absolute()
    
    
    @pytest.mark.parametrize(
        "copy_test_files",
        [(f"{data_path}/en_doc.md", f"{data_path}/translated_doc_wrong_lang_code.md")],
        indirect=True,
    )
    def test_wrong_lang_code_1(runner: CliRunner, root_dir: Path, copy_test_files):
    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_header_permalinks/test_header_level_mismatch.py

    import pytest
    from typer.testing import CliRunner
    
    from scripts.translation_fixer import cli
    
    data_path = Path(
        "scripts/tests/test_translation_fixer/test_header_permalinks/data"
    ).absolute()
    
    
    @pytest.mark.parametrize(
        "copy_test_files",
        [(f"{data_path}/en_doc.md", f"{data_path}/translated_doc_level_mismatch_1.md")],
        indirect=True,
    )
    def test_level_mismatch_1(runner: CliRunner, root_dir: Path, copy_test_files):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Jan 10 22:43:44 GMT 2026
    - 2K bytes
    - Click Count (0)
  9. scripts/tests/test_translation_fixer/test_code_includes/test_number_mismatch.py

    import pytest
    from typer.testing import CliRunner
    
    from scripts.translation_fixer import cli
    
    data_path = Path(
        "scripts/tests/test_translation_fixer/test_code_includes/data"
    ).absolute()
    
    
    @pytest.mark.parametrize(
        "copy_test_files",
        [(f"{data_path}/en_doc.md", f"{data_path}/translated_doc_number_gt.md")],
        indirect=True,
    )
    def test_gt(runner: CliRunner, root_dir: Path, copy_test_files):
        result = runner.invoke(
    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)
  10. tests/test_modules_same_name_body/test_main.py

    from .app.main import app
    
    client = TestClient(app)
    
    
    @pytest.mark.parametrize(
        "path", ["/a/compute", "/a/compute/", "/b/compute", "/b/compute/"]
    )
    def test_post(path):
        data = {"a": 2, "b": "foo"}
        response = client.post(path, json=data)
        assert response.status_code == 200, response.text
        assert data == response.json()
    
    
    @pytest.mark.parametrize(
        "path", ["/a/compute", "/a/compute/", "/b/compute", "/b/compute/"]
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 6.2K bytes
    - Click Count (0)
Back to Top