Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for module_name (0.04 sec)

  1. tests/test_tutorial/test_python_types/test_tutorial001_tutorial002.py

    import runpy
    from unittest.mock import patch
    
    import pytest
    
    
    @pytest.mark.parametrize(
        "module_name",
        [
            "tutorial001_py39",
            "tutorial002_py39",
        ],
    )
    def test_run_module(module_name: str):
        with patch("builtins.print") as mock_print:
            runpy.run_module(f"docs_src.python_types.{module_name}", run_name="__main__")
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 398 bytes
    - Viewed (0)
  2. tests/test_tutorial/test_response_model/test_tutorial003_04.py

    from ...utils import needs_py310
    
    
    @pytest.mark.parametrize(
        "module_name",
        [
            pytest.param("tutorial003_04_py39"),
            pytest.param("tutorial003_04_py310", marks=needs_py310),
        ],
    )
    def test_invalid_response_model(module_name: str) -> None:
        with pytest.raises(FastAPIError):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 453 bytes
    - Viewed (0)
  3. tests/test_tutorial/test_python_types/test_tutorial011.py

    from ...utils import needs_py310
    
    
    @pytest.mark.parametrize(
        "module_name",
        [
            pytest.param("tutorial011_py39"),
            pytest.param("tutorial011_py310", marks=needs_py310),
        ],
    )
    def test_run_module(module_name: str):
        with patch("builtins.print") as mock_print:
            runpy.run_module(f"docs_src.python_types.{module_name}", run_name="__main__")
    
        assert mock_print.call_count == 2
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 691 bytes
    - Viewed (0)
  4. docs_src/path_params/tutorial005_py39.py

    
    app = FastAPI()
    
    
    @app.get("/models/{model_name}")
    async def get_model(model_name: ModelName):
        if model_name is ModelName.alexnet:
            return {"model_name": model_name, "message": "Deep Learning FTW!"}
    
        if model_name.value == "lenet":
            return {"model_name": model_name, "message": "LeCNN all the images"}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 546 bytes
    - Viewed (0)
  5. api/maven-api-core/src/test/java/org/apache/maven/api/SourceRootTest.java

    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.when;
    
    public class SourceRootTest implements SourceRoot {
        private ProjectScope scope;
    
        private Language language;
    
        private String moduleName;
    
        @Override
        public ProjectScope scope() {
            return (scope != null) ? scope : SourceRoot.super.scope();
        }
    
        @Override
        public Language language() {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sun Oct 26 17:22:14 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  6. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/PomDiscovery.java

            for (Element moduleElement : moduleElements) {
                String moduleName = moduleElement.textContentTrimmed();
                if (moduleName.isEmpty()) {
                    continue;
                }
    
                Path moduleDirectory = baseDirectory.resolve(moduleName);
                Path modulePomPath = moduleDirectory.resolve(POM_XML);
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_path_params/test_tutorial005.py

        response = client.get("/models/alexnet")
        assert response.status_code == 200
        assert response.json() == {"model_name": "alexnet", "message": "Deep Learning FTW!"}
    
    
    def test_get_enums_lenet():
        response = client.get("/models/lenet")
        assert response.status_code == 200
        assert response.json() == {"model_name": "lenet", "message": "LeCNN all the images"}
    
    
    def test_get_enums_resnet():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  8. buildSrc/src/main/kotlin/JavaModules.kt

    import org.gradle.api.tasks.compile.JavaCompile
    import org.gradle.kotlin.dsl.configure
    import org.gradle.kotlin.dsl.named
    import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
    
    fun Project.applyJavaModules(
      moduleName: String,
      defaultVersion: Int = 8,
      javaModuleVersion: Int = 9,
      enableValidation: Boolean = true,
    ) {
      plugins.apply("me.champeau.mrjar")
    
      configure<MultiReleaseExtension> {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Sep 21 06:22:22 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/opensearch/query/StoredLtrQueryBuilder.java

        /** The name of the query. */
        public static final String NAME = "sltr";
    
        /** The parse field for the model name. */
        public static final ParseField MODEL_NAME = new ParseField("model");
        /** The parse field for the featureset name. */
        public static final ParseField FEATURESET_NAME = new ParseField("featureset");
        /** The parse field for the store name. */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  10. docs/ko/docs/tutorial/path-params.md

    ### 파이썬 *열거형*으로 작업하기
    
    *경로 매개변수*의 값은 *열거형 멤버*가 됩니다.
    
    #### *열거형 멤버* 비교
    
    열거형 `ModelName`의 *열거형 멤버*를 비교할 수 있습니다:
    
    {* ../../docs_src/path_params/tutorial005.py hl[17] *}
    
    #### *열거형 값* 가져오기
    
    `model_name.value` 또는 일반적으로 `your_enum_member.value`를 이용하여 실제 값(위 예시의 경우 `str`)을 가져올 수 있습니다:
    
    {* ../../docs_src/path_params/tutorial005.py hl[20] *}
    
    /// tip | 팁
    
    `ModelName.lenet.value`로도 값 `"lenet"`에 접근할 수 있습니다.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 9.6K bytes
    - Viewed (0)
Back to top