- Sort Score
- Num 10 results
- Language All
Results 511 - 520 of 714 for dependency_c (0.06 seconds)
-
docs/uk/docs/tutorial/security/get-current-user.md
{* ../../docs_src/security/tutorial002_an_py310.py hl[5,12:6] *} ## Створити залежність `get_current_user` { #create-a-get-current-user-dependency } Створімо залежність `get_current_user`. Пам'ятаєте, що залежності можуть мати підзалежності? `get_current_user` матиме залежність із тим самим `oauth2_scheme`, який ми створили раніше.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:43:14 GMT 2026 - 6.7K bytes - Click Count (0) -
tests/test_dependency_yield_scope_websockets.py
assert global_state["session_closed"] is True assert global_state["named_session_closed"] is True def test_broken_scope() -> None: with pytest.raises( FastAPIError, match='The dependency "get_named_func_session" has a scope of "request", it cannot depend on dependencies with scope "function"', ): @app.websocket("/broken-scope") async def get_broken(
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 6K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFilenameFilterTest.java
assertEquals("boom", ex.getMessage(), "Exception message should be preserved"); verifyNoInteractions(mockDir); } /** * Interaction with dependency: implementation can use directory's methods to make decisions. * Tests a filter that uses directory path information. */ @Test @DisplayName("filter can use SmbFile directory for decision logic")
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.3K bytes - Click Count (0) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/PluginsMetadataGenerator.java
// Note: using DOM instead of use of // org.apache.maven.plugin.descriptor.PluginDescriptor // as it would pull in dependency on: // - maven-plugin-api (for model) // - Plexus Container (for model supporting classes and exceptions)Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Mar 25 09:45:07 GMT 2025 - 7.8K bytes - Click Count (0) -
docs/fr/docs/tutorial/background-tasks.md
* Les arguments positionnels à passer à la fonction de tâche dans l'ordre (`email`). * Les arguments nommés à passer à la fonction de tâche (`message="some notification"`). ## Injection de dépendances { #dependency-injection }
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:37:13 GMT 2026 - 5.5K bytes - Click Count (0) -
docs/ja/docs/advanced/testing-dependencies.md
外部プロバイダ自体の動作は一度はテストしたいでしょうが、実行されるすべてのテストで毎回呼び出す必要はありません。 この場合、そのプロバイダを呼び出す依存関係をオーバーライドし、テストのときだけモックユーザーを返すカスタムの依存関係を使えます。 ### app.dependency_overrides 属性を使う { #use-the-app-dependency-overrides-attribute } このような場合のために、**FastAPI** アプリケーションには `app.dependency_overrides` という属性があり、これは単純な `dict` です。 テスト用に依存関係をオーバーライドするには、キーに元の依存関係(関数)を、値にオーバーライドする依存関係(別の関数)を設定します。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 15:24:30 GMT 2026 - 3K bytes - Click Count (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/CrawlerClientFactory.java
* allowing for URL-based client selection. Clients can be added with specific patterns * and optionally at specific positions in the processing order.</p> * * <p>This factory is typically initialized through dependency injection and can be * configured with initialization parameters that are passed to all registered clients.</p> * * <p>Features:</p> * <ul> * <li>Pattern-based client mapping</li>
Created: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Mon Nov 24 03:59:47 GMT 2025 - 7.3K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/Packaging.java
* <li>{@code war}: Packages the project as a Web Application Archive (WAR) file.</li> * <li>{@code pom}: Indicates that the project does not produce a deployable artifact but is used for dependency management or as an aggregator.</li> * <li>{@code maven-plugin}: Packages the project as a Maven plugin.</li> * </ul> * * <h2>Usage Example</h2> * * <pre> * {@code
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 3.2K bytes - Click Count (0) -
docs/zh/docs/advanced/testing-dependencies.md
常见实例是调用外部第三方身份验证应用。 向第三方应用发送令牌,然后返回经验证的用户。 但第三方服务商处理每次请求都可能会收费,并且耗时通常也比调用写死的模拟测试用户更长。 一般只要测试一次外部验证应用就够了,不必每次测试都去调用。 此时,最好覆盖调用外部验证应用的依赖项,使用返回模拟测试用户的自定义依赖项就可以了。 ### 使用 `app.dependency_overrides` 属性 { #use-the-app-dependency-overrides-attribute } 对于这些用例,**FastAPI** 应用支持 `app.dependency_overrides` 属性,该属性就是**字典**。 要在测试时覆盖原有依赖项,这个字典的键应当是原依赖项(函数),值是覆盖依赖项(另一个函数)。 这样一来,**FastAPI** 就会调用覆盖依赖项,不再调用原依赖项。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 13:37:57 GMT 2026 - 2K bytes - Click Count (0) -
build-tools-internal/src/main/resources/forbidden/third-party-audit.txt
# listed in the module's build.gradle file: # # thirdPartyAudit.excludes = [ # // uses internal java api: sun.misc.Unsafe # 'org.foo.Bar', # // missing class! # 'com.missing.dependency.WTF', # // ... # ] # # Wildcards are not allowed, excludes must be exact. The build also fails with # the message "Invalid exclusions, nothing is wrong with these classes" if
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 3K bytes - Click Count (0)