- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 28 for get_a_a (0.09 sec)
-
tests/test_dependency_security_overrides.py
return "alice", required_scopes.scopes def get_data(): return [1, 2, 3] def get_data_override(): return [3, 4, 5] @app.get("/user") def read_user( user_data: tuple[str, list[str]] = Security(get_user, scopes=["foo", "bar"]), data: list[int] = Depends(get_data), ): return {"user": user_data[0], "scopes": user_data[1], "data": data}
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 1.4K bytes - Viewed (1) -
impl/maven-core/src/test/java/org/apache/maven/internal/transformation/impl/ConsumerPomArtifactTransformerTest.java
RepositorySystemSession systemSessionMock = Mockito.mock(RepositorySystemSession.class); SessionData sessionDataMock = Mockito.mock(SessionData.class); when(systemSessionMock.getData()).thenReturn(sessionDataMock); Path beforePomFile = Paths.get("src/test/resources/projects/transform/before.pom").toAbsolutePath(); Path afterPomFile =
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Thu Nov 06 18:32:25 UTC 2025 - 13.3K bytes - Viewed (0) -
tests/test_tutorial/test_settings/test_tutorial001.py
import importlib import pytest from fastapi.testclient import TestClient from pytest import MonkeyPatch @pytest.fixture(name="app", params=[pytest.param("tutorial001_py39")]) def get_app(request: pytest.FixtureRequest, monkeypatch: MonkeyPatch): monkeypatch.setenv("ADMIN_EMAIL", "******@****.***") mod = importlib.import_module(f"docs_src.settings.{request.param}") return mod.app def test_settings(app):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 12:54:56 UTC 2025 - 690 bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/internal/transformation/impl/ConsumerPomBuilderTest.java
Path file = Paths.get("src/test/resources/consumer/trivial/child/pom.xml"); ModelBuilder.ModelBuilderSession mbs = modelBuilder.newSession(); InternalSession.from(session).getData().set(SessionData.key(ModelBuilder.ModelBuilderSession.class), mbs); Model orgModel = mbs.build(ModelBuilderRequest.builder() .session(InternalSession.from(session))Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Thu Nov 06 18:32:25 UTC 2025 - 7.2K bytes - Viewed (0) -
tests/test_tutorial/test_events/test_tutorial002.py
import pytest from fastapi import FastAPI from fastapi.testclient import TestClient @pytest.fixture(name="app", scope="module") def get_app(): with pytest.warns(DeprecationWarning): from docs_src.events.tutorial002_py39 import app yield app def test_events(app: FastAPI): with TestClient(app) as client: response = client.get("/items/") assert response.status_code == 200, response.text
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 1.4K bytes - Viewed (0) -
tests/test_tutorial/test_request_files/test_tutorial003.py
import pytest from fastapi import FastAPI from fastapi.testclient import TestClient @pytest.fixture( name="app", params=[ "tutorial003_py39", "tutorial003_an_py39", ], ) def get_app(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.request_files.{request.param}") return mod.app @pytest.fixture(name="client") def get_client(app: FastAPI):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 7.5K bytes - Viewed (0) -
tests/test_tutorial/test_events/test_tutorial001.py
import pytest from fastapi import FastAPI from fastapi.testclient import TestClient @pytest.fixture(name="app", scope="module") def get_app(): with pytest.warns(DeprecationWarning): from docs_src.events.tutorial001_py39 import app yield app def test_events(app: FastAPI): with TestClient(app) as client: response = client.get("/items/foo") assert response.status_code == 200, response.text
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 3.6K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/AccessResultImplTest.java
ResultData resultData = new ResultData(); resultData.setTransformerName("TestTransformer"); resultData.setData(new byte[0]); // Set data to avoid getData() error result.init(null, resultData); // CreateTime should be set assertNotNull(result.getCreateTime()); // AccessResultData should be created with ResultData fieldsRegistered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Nov 13 13:29:22 UTC 2025 - 13.4K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java
@Test public void testGetDataInMemory() throws IOException { // getData() should return the written data when in memory ContentOutputStream cos = new ContentOutputStream(10, Curl.tmpDir); byte[] data = new byte[] { 0, 1, 2, 3, 4 }; cos.write(data); assertTrue(cos.isInMemory()); byte[] result = cos.getData(); assertNotNull(result); assertArrayEquals(data, result);Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Wed Nov 12 14:01:04 UTC 2025 - 9.9K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/MarkdownExtractor.java
final YamlFrontMatterVisitor visitor = new YamlFrontMatterVisitor(); document.accept(visitor); final Map<String, List<String>> frontMatter = visitor.getData(); for (final Map.Entry<String, List<String>> entry : frontMatter.entrySet()) { final String key = "frontmatter." + entry.getKey(); final List<String> values = entry.getValue();
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sun Nov 23 03:46:53 UTC 2025 - 8.2K bytes - Viewed (0)