Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 40 for Bratch (0.04 seconds)

  1. tests/test_tutorial/test_python_types/test_tutorial009c.py

    
    def test_say_hi(module: ModuleType):
        with patch("builtins.print") as mock_print:
            module.say_hi("FastAPI")
    
        mock_print.assert_called_once_with("Hey FastAPI!")
    
        with pytest.raises(
            TypeError,
            match=re.escape("say_hi() missing 1 required positional argument: 'name'"),
        ):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 777 bytes
    - Click Count (0)
  2. build-logic/binary-compatibility/src/main/groovy/gradlebuild.binary-compatibility.gradle

                against THE LATEST VERSION WHICH IS RELEASED FROM RELEASE BRANCH (from `released-version.json` on this branch)
                AND LOWER THAN CURRENT BASE VERSION (from `version.txt` on this branch).
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Dec 30 10:14:25 GMT 2025
    - 8.9K bytes
    - Click Count (0)
  3. .teamcity/src/main/kotlin/configurations/StageTriggers.kt

            }
    
            if (generateTriggers) {
                val enableTriggers = model.branch.isMainBranch || model.branch.isLegacyRelease
                if (stage.trigger == Trigger.EACH_COMMIT) {
                    val effectiveTriggerBranches = mutableListOf(model.branch.branchName)
    
                    if (model.branch.isMaster) {
                        effectiveTriggerBranches.add(PROVIDER_API_MIGRATION_BRANCH)
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Dec 30 12:17:39 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  4. .teamcity/src/main/kotlin/common/VersionedSettingsBranch.kt

            private const val RELEASE_BRANCH = "release"
    
            private const val EXPERIMENTAL_BRANCH = "xperimental"
    
            // master branch of gradle/gradle-promote
            private const val GRADLE_PROMOTE_MASTER_VCS_ROOT_ID = "Gradle_GradlePromoteMaster"
    
            // experimental branch of gradle/gradle-promote
            private const val GRADLE_PROMOTE_EXPERIMENTAL_VCS_ROOT_ID = "Gradle_GradlePromoteExperimental"
    
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Mon Dec 29 08:57:18 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  5. .teamcity/src/main/kotlin/promotion/PublishNightlyDocumentation.kt

            description =
                "Promotes the latest successful documentation changes on '${branch.branchName}' from Ready for Nightly as a new nightly documentation snapshot"
    
            triggers {
                branch.determineNightlyPromotionTriggerHour()?.let { triggerHour ->
                    schedule {
                        scheduledTrigger(branch, policy = daily { this.hour = triggerHour }, pendingChangesOnly = true)
                    }
                }
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Mon Dec 29 08:57:18 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  6. .teamcity/src/main/kotlin/promotion/PublishNightlySnapshot.kt

        triggerRules = "+:root=${branch.vcsRootId()}:."
        branchFilter = "+:<default>"
    }
    
    class PublishNightlySnapshot(
        branch: VersionedSettingsBranch,
    ) : PublishGradleDistributionFullBuild(
            promotedBranch = branch.branchName,
            prepTask = branch.prepNightlyTaskName(),
            promoteTask = branch.promoteNightlyTaskName(),
            triggerName = "ReadyforNightly",
        ) {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Mon Dec 29 08:57:18 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  7. tests/test_tutorial/test_python_types/test_tutorial006.py

    from unittest.mock import patch
    
    from docs_src.python_types.tutorial006_py39 import process_items
    
    
    def test_process_items():
        with patch("builtins.print") as mock_print:
            process_items(["item_a", "item_b", "item_c"])
    
        assert mock_print.call_count == 3
        call_args = [arg.args for arg in mock_print.call_args_list]
        assert call_args == [
            ("item_a",),
            ("item_b",),
            ("item_c",),
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 426 bytes
    - Click Count (0)
  8. tests/test_tutorial/test_dependencies/test_tutorial010.py

    from typing import Annotated, Any
    from unittest.mock import Mock, patch
    
    from fastapi import Depends, FastAPI
    from fastapi.testclient import TestClient
    
    from docs_src.dependencies.tutorial010_py39 import get_db
    
    
    def test_get_db():
        app = FastAPI()
    
        @app.get("/")
        def read_root(c: Annotated[Any, Depends(get_db)]):
            return {"c": str(c)}
    
        client = TestClient(app)
    
        dbsession_mock = Mock()
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 688 bytes
    - Click Count (0)
  9. tests/test_tutorial/test_python_types/test_tutorial009_tutorial009b.py

    import importlib
    from types import ModuleType
    from unittest.mock import patch
    
    import pytest
    
    from ...utils import needs_py310
    
    
    @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):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 805 bytes
    - Click Count (0)
  10. tests/test_tutorial/test_body_updates/test_tutorial002.py

            "name": "Baz",
            "description": None,
            "price": 50.2,
            "tax": 10.5,
            "tags": [],
        }
    
    
    def test_patch_all(client: TestClient):
        response = client.patch(
            "/items/foo",
            json={
                "name": "Fooz",
                "description": "Item description",
                "price": 3,
                "tax": 10.5,
                "tags": ["tag1", "tag2"],
            },
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 7.1K bytes
    - Click Count (0)
Back to Top