- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for unitTests (0.05 sec)
-
.teamcity/src/main/kotlin/model/GradleSubprojectProvider.kt
val path = subproject["path"] as String val unitTests = !ignoredSubprojects.contains(name) && subproject["unitTests"] as Boolean val functionalTests = !ignoredSubprojects.contains(name) && subproject["functionalTests"] as Boolean val crossVersionTests = !ignoredSubprojects.contains(name) && subproject["crossVersionTests"] as Boolean return GradleSubproject(name, path, unitTests, functionalTests, crossVersionTests) }
Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Wed Feb 12 09:12:03 UTC 2025 - 2.4K bytes - Viewed (0) -
.github/workflows/extract-unit-test-split.jq
Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Mon Oct 11 08:08:26 UTC 2021 - 171 bytes - Viewed (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/model/GradleSubproject.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package gradlebuild.buildutils.model
Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Fri Jun 02 14:55:06 UTC 2023 - 806 bytes - Viewed (0) -
android-test/build.gradle.kts
) } compileOptions { targetCompatibility(JavaVersion.VERSION_11) sourceCompatibility(JavaVersion.VERSION_11) } testOptions { targetSdk = 34 unitTests.isIncludeAndroidResources = true } kotlinOptions { jvmTarget = JavaVersion.VERSION_11.toString() } // issue merging due to conflict with httpclient and something elseRegistered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Nov 21 12:33:41 UTC 2025 - 3.9K bytes - Viewed (2) -
tests/test_tutorial/test_debugging/test_tutorial001.py
with unittest.mock.patch("uvicorn.run") as uvicorn_run_mock: runpy.run_module(MOD_NAME, run_name="__main__") uvicorn_run_mock.assert_called_once_with( unittest.mock.ANY, host="0.0.0.0", port=8000 ) def test_openapi_schema(client: TestClient): response = client.get("/openapi.json") assert response.status_code == 200 assert response.json() == { "openapi": "3.1.0",
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 1.8K bytes - Viewed (0) -
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()
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 688 bytes - Viewed (0) -
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):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 805 bytes - Viewed (0) -
tests/test_tutorial/test_python_types/test_tutorial009c.py
import importlib import re from types import ModuleType from unittest.mock import patch import pytest 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}")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 777 bytes - Viewed (0) -
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",),
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 426 bytes - Viewed (0) -
tests/test_tutorial/test_dependencies/test_tutorial008.py
import importlib from types import ModuleType from typing import Annotated, Any from unittest.mock import Mock, patch import pytest from fastapi import Depends, FastAPI from fastapi.testclient import TestClient @pytest.fixture( name="module", params=[ "tutorial008_py39", # Fails with `NameError: name 'DepA' is not defined` pytest.param("tutorial008_an_py39", marks=pytest.mark.xfail), ], )
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 1.4K bytes - Viewed (0)