Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 47 for Fixture (0.1 seconds)

  1. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

        assertEquals("Three Objects should be delivered.", 3, objectEvents.size());
        assertEquals("String fixture must be first object delivered.", EVENT, objectEvents.get(0));
        assertEquals("Object fixture must be second object delivered.", objEvent, objectEvents.get(1));
        assertEquals(
            "Comparable fixture must be thirdobject delivered.", compEvent, objectEvents.get(2));
    
        // Check the Catcher<Comparable<?>>...
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/eventbus/EventBusTest.java

        assertEquals("Three Objects should be delivered.", 3, objectEvents.size());
        assertEquals("String fixture must be first object delivered.", EVENT, objectEvents.get(0));
        assertEquals("Object fixture must be second object delivered.", objEvent, objectEvents.get(1));
        assertEquals(
            "Comparable fixture must be thirdobject delivered.", compEvent, objectEvents.get(2));
    
        // Check the Catcher<Comparable<?>>...
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  3. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractBinaryCompatibilityTest.kt

                        """
                    )
                },
                block = block
            )
    
        /**
         * Runs the binary compatibility check against two source trees.
         *
         * The fixture build supports both Java and Kotlin sources.
         *
         * @param v1 sources producer for V1, receiver is the `src/main` directory
         * @param v2 sources producer for V2, receiver is the `src/main` directory
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Jan 19 11:30:48 GMT 2026
    - 18.3K bytes
    - Click Count (0)
  4. scripts/tests/test_translation_fixer/conftest.py

            if item_path.is_relative_to(THIS_DIR):
                item.add_marker(skip_on_windows)
    
    
    @pytest.fixture(name="runner")
    def get_runner():
        runner = CliRunner()
        with runner.isolated_filesystem():
            yield runner
    
    
    @pytest.fixture(name="root_dir")
    def prepare_paths(runner):
        docs_dir = Path("docs")
        en_docs_dir = docs_dir / "en" / "docs"
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 25 10:37:59 GMT 2026
    - 1.3K bytes
    - Click Count (0)
  5. tests/test_tutorial/test_body_nested_models/test_tutorial001_tutorial002_tutorial003.py

    
    @pytest.fixture(
        name="mod_name",
        params=[
            pytest.param("tutorial001_py310", marks=needs_py310),
            pytest.param("tutorial002_py310", marks=needs_py310),
            pytest.param("tutorial003_py310", marks=needs_py310),
        ],
    )
    def get_mod_name(request: pytest.FixtureRequest):
        return request.param
    
    
    @pytest.fixture(name="client")
    def get_client(mod_name: str):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 8.5K bytes
    - Click Count (0)
  6. tests/test_tutorial/test_additional_status_codes/test_tutorial001.py

    import importlib
    
    import pytest
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial001_py310", marks=needs_py310),
            pytest.param("tutorial001_an_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.additional_status_codes.{request.param}")
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 934 bytes
    - Click Count (0)
  7. tests/test_tutorial/test_authentication_error_status_code/test_tutorial001.py

    import importlib
    
    import pytest
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    
    @pytest.fixture(
        name="client",
        params=[
            "tutorial001_an_py310",
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(
            f"docs_src.authentication_error_status_code.{request.param}"
        )
    
        client = TestClient(mod.app)
        return client
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 1.9K bytes
    - Click Count (0)
  8. tests/test_tutorial/test_body_multiple_params/test_tutorial003.py

    import importlib
    
    import pytest
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial003_py310", marks=needs_py310),
            pytest.param("tutorial003_an_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 8.1K bytes
    - Click Count (0)
  9. tests/test_schema_compat_pydantic_v2.py

    from dirty_equals import IsOneOf
    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    from pydantic import BaseModel
    
    from tests.utils import needs_py310
    
    
    @pytest.fixture(name="client")
    def get_client():
        from enum import Enum
    
        app = FastAPI()
    
        class PlatformRole(str, Enum):
            admin = "admin"
            user = "user"
    
        class OtherRole(str, Enum): ...
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Mar 23 12:36:49 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  10. tests/test_tutorial/test_background_tasks/test_tutorial002.py

    import importlib
    import os
    from pathlib import Path
    
    import pytest
    from fastapi.testclient import TestClient
    
    from tests.utils import needs_py310, workdir_lock
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial002_py310", marks=needs_py310),
            pytest.param("tutorial002_an_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 27 10:53:47 GMT 2026
    - 968 bytes
    - Click Count (0)
Back to Top