- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 42 for parametrizar (0.16 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
tests/test_openapi_schema_type.py
import pytest from fastapi.openapi.models import Schema, SchemaType @pytest.mark.parametrize( "type_value", [ "array", ["string", "null"], None, ], ) def test_allowed_schema_type( type_value: SchemaType | list[SchemaType] | None, ) -> None: """Test that Schema accepts SchemaType, List[SchemaType] and None for type field.""" schema = Schema(type=type_value)Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 685 bytes - Click Count (0) -
scripts/tests/test_translation_fixer/test_complex_doc/test_compex_doc.py
import pytest from typer.testing import CliRunner from scripts.translation_fixer import cli data_path = Path( "scripts/tests/test_translation_fixer/test_complex_doc/data" ).absolute() @pytest.mark.parametrize( "copy_test_files", [(f"{data_path}/en_doc.md", f"{data_path}/translated_doc.md")], indirect=True, ) def test_fix(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 - 902 bytes - Click Count (0) -
tests/test_dependency_class.py
async def get_asynchronous_method_gen_dependency( value: str = Depends(methods_dependency.asynchronous_gen), ): return value client = TestClient(app) @pytest.mark.parametrize( "route,value", [ ("/callable-dependency", "callable-dependency"), ("/callable-gen-dependency", "callable-gen-dependency"), ("/async-callable-dependency", "async-callable-dependency"),
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 4.4K bytes - Click Count (0) -
tests/test_custom_route_class.py
router_b.include_router(router=router_c, prefix="/c") router_a.include_router(router=router_b, prefix="/b") app.include_router(router=router_a, prefix="/a") client = TestClient(app) @pytest.mark.parametrize( "path,expected_status,expected_response", [ ("/a", 200, {"msg": "A"}), ("/a/b", 200, {"msg": "B"}), ("/a/b/c", 200, {"msg": "C"}), ], )
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 3.3K bytes - Click Count (0) -
tests/test_security_oauth2.py
"type": "missing", "loc": ["body", "grant_type"], "msg": "Field required", "input": None, } ] } @pytest.mark.parametrize( argnames=["grant_type"], argvalues=[ pytest.param("incorrect", id="incorrect value"), pytest.param("passwordblah", id="password with suffix"),
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 9.8K bytes - Click Count (0) -
tests/test_security_oauth2_optional_description.py
"type": "missing", "loc": ["body", "grant_type"], "msg": "Field required", "input": None, } ] } @pytest.mark.parametrize( argnames=["grant_type"], argvalues=[ pytest.param("incorrect", id="incorrect value"), pytest.param("passwordblah", id="password with suffix"),
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 9.9K bytes - Click Count (0) -
tests/test_dependency_partial.py
"partial-asynchronous-method-gen-dependency", ) ), ], ) -> str: return value client = TestClient(app) @pytest.mark.parametrize( "route,value", [ ("/partial-function-dependency", "partial-function-dependency"), ( "/partial-async-function-dependency", "partial-async-function-dependency",Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 6.3K bytes - Click Count (0) -
tests/test_include_router_defaults_overrides.py
assert not override3 or "x-level3" in response.headers @pytest.mark.parametrize("override1", [True, False]) @pytest.mark.parametrize("override2", [True, False]) @pytest.mark.parametrize("override3", [True, False]) @pytest.mark.parametrize("override4", [True, False]) @pytest.mark.parametrize("override5", [True, False]) def test_paths_level5(override1, override2, override3, override4, override5):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 385.6K bytes - Click Count (0) -
tests/test_dependency_wrapped.py
@app.get("/async-wrapped-endpoint-async-wrapper/") @noop_wrap_async async def get_async_wrapped_endpoint_async_wrapper(): return True client = TestClient(app) @pytest.mark.parametrize( "route", [ "/wrapped-dependency/", "/wrapped-gen-dependency/", "/async-wrapped-dependency/", "/async-wrapped-gen-dependency/",
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 11.2K bytes - Click Count (0) -
cmd/admin-handlers_test.go
err = signRequestV4(req, cred.AccessKey, cred.SecretKey) if err != nil { return nil, err } return req, nil } // testServicesCmdHandler - parametrizes service subcommand tests on // cmdType value. func testServicesCmdHandler(cmd cmdType, t *testing.T) { ctx, cancel := context.WithCancel(context.Background()) defer cancel()
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 13.9K bytes - Click Count (1)