Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 11 for get_module (0.04 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. tests/test_tutorial/test_python_types/test_tutorial008b.py

    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="module",
        params=[
            pytest.param("tutorial008b_py39"),
            pytest.param("tutorial008b_py310", marks=needs_py310),
        ],
    )
    def get_module(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.python_types.{request.param}")
        return mod
    
    
    def test_process_items(module: ModuleType):
        with patch("builtins.print") as mock_print:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 637 bytes
    - Click Count (0)
  2. tests/test_tutorial/test_dependencies/test_tutorial008.py

    @pytest.fixture(
        name="module",
        params=[
            "tutorial008_py39",
            # Fails with `NameError: name 'DepA' is not defined`
            pytest.param("tutorial008_an_py39", marks=pytest.mark.xfail),
        ],
    )
    def get_module(request: pytest.FixtureRequest):
        mod_name = f"docs_src.dependencies.{request.param}"
        mod = importlib.import_module(mod_name)
        return mod
    
    
    def test_get_db(module: ModuleType):
        app = FastAPI()
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 1.4K bytes
    - Click Count (0)
  3. tests/test_tutorial/test_python_types/test_tutorial009_tutorial009b.py

    @pytest.fixture(
        name="module",
        params=[
            pytest.param("tutorial009_py39"),
            pytest.param("tutorial009_py310", marks=needs_py310),
            pytest.param("tutorial009b_py39"),
        ],
    )
    def get_module(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.python_types.{request.param}")
        return mod
    
    
    def test_say_hi(module: ModuleType):
        with patch("builtins.print") as mock_print:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 805 bytes
    - Click Count (0)
  4. tests/test_tutorial/test_python_types/test_tutorial009c.py

    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="module",
        params=[
            pytest.param("tutorial009c_py39"),
            pytest.param("tutorial009c_py310", marks=needs_py310),
        ],
    )
    def get_module(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.python_types.{request.param}")
        return mod
    
    
    def test_say_hi(module: ModuleType):
        with patch("builtins.print") as mock_print:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 777 bytes
    - Click Count (0)
  5. tests/test_tutorial/test_encoder/test_tutorial001.py

    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="mod",
        params=[
            pytest.param("tutorial001_py39"),
            pytest.param("tutorial001_py310", marks=needs_py310),
        ],
    )
    def get_module(request: pytest.FixtureRequest):
        module = importlib.import_module(f"docs_src.encoder.{request.param}")
        return module
    
    
    @pytest.fixture(name="client")
    def get_client(mod: ModuleType):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 6.7K bytes
    - Click Count (0)
  6. tests/test_tutorial/test_testing/test_main_b.py

        return mod
    
    
    def test_app(test_module: ModuleType):
        test_main = test_module
        test_main.test_create_existing_item()
        test_main.test_create_item()
        test_main.test_create_item_bad_token()
        test_main.test_read_nonexistent_item()
        test_main.test_read_item()
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 833 bytes
    - Click Count (0)
  7. module-tests/src/test/java/okhttp3/modules/test/JavaModuleTest.java

        }
      }
    
      @Test
      public void testModules() {
        Module okHttpModule = OkHttpClient.class.getModule();
        assertEquals("okhttp3", okHttpModule.getName());
        assertTrue(okHttpModule.getPackages().contains("okhttp3"));
    
        Module loggingInterceptorModule = HttpLoggingInterceptor.class.getModule();
        assertEquals("okhttp3.logging", loggingInterceptorModule.getName());
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sun Sep 21 06:22:22 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  8. tests/test_datetime_custom_encoder.py

        app = FastAPI()
        model = ModelWithDatetimeField(dt_field=datetime(2019, 1, 1, 8))
    
        @app.get("/model", response_model=ModelWithDatetimeField)
        def get_model():
            return model
    
        client = TestClient(app)
        with client:
            response = client.get("/model")
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 817 bytes
    - Click Count (0)
  9. compat/maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java

                                    + "require 'pom' as packaging.",
                            m);
                }
    
                for (int i = 0, n = m.getModules().size(); i < n; i++) {
                    String module = m.getModules().get(i);
                    if (StringUtils.isBlank(module)) {
                        addViolation(
                                problems,
                                Severity.ERROR,
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 03 15:06:05 GMT 2025
    - 66.8K bytes
    - Click Count (0)
  10. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomBuilder.java

                            || profile.getDependencyManagement().getDependencies().isEmpty())
                    && profile.getDistributionManagement() == null
                    && profile.getModules().isEmpty()
                    && profile.getSubprojects().isEmpty()
                    && profile.getProperties().isEmpty()
                    && profile.getRepositories().isEmpty()
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Nov 27 07:40:26 GMT 2025
    - 21.2K bytes
    - Click Count (0)
Back to Top