Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 751 - 760 of 919 for MAIN (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs_src/settings/app02_py310/test_main.py

    from fastapi.testclient import TestClient
    
    from .config import Settings
    from .main import app, get_settings
    
    client = TestClient(app)
    
    
    def get_settings_override():
        return Settings(admin_email="******@****.***")
    
    
    app.dependency_overrides[get_settings] = get_settings_override
    
    
    def test_app():
        response = client.get("/info")
        data = response.json()
        assert data == {
            "app_name": "Awesome API",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 515 bytes
    - Click Count (0)
  2. tests/test_fastapi_cli.py

    
    def test_fastapi_cli_not_installed():
        with patch.object(fastapi.cli, "cli_main", None):
            with pytest.raises(RuntimeError) as exc_info:
                fastapi.cli.main()
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Dec 02 04:02:38 GMT 2025
    - 866 bytes
    - Click Count (0)
  3. docs/uk/docs/how-to/custom-docs-ui-assets.md

    Припустімо, що структура файлів вашого проєкту виглядає так:
    
    ```
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    ```
    
    Тепер створіть каталог для збереження цих статичних файлів.
    
    Нова структура файлів може виглядати так:
    
    ```
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    └── static/
    ```
    
    ### Завантажте файли { #download-the-files }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 11.8K bytes
    - Click Count (0)
  4. docs/zh-hant/docs/deployment/docker.md

    RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
    
    # (1)!
    COPY ./main.py /code/
    
    # (2)!
    CMD ["fastapi", "run", "main.py", "--port", "80"]
    ```
    
    1. 將 `main.py` 直接複製到 `/code` 目錄(不需要 `./app` 目錄)。
    
    2. 使用 `fastapi run` 來服務單檔的 `main.py` 應用。
    
    當你把檔案傳給 `fastapi run`,它會自動偵測這是一個單一檔案而非套件的一部分,並知道如何匯入並服務你的 FastAPI 應用。😎
    
    ## 部署概念 { #deployment-concepts }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 24.9K bytes
    - Click Count (0)
  5. docs/ja/docs/advanced/async-tests.md

    簡単な例として、[大きなアプリケーション](../tutorial/bigger-applications.md) と [テスト](../tutorial/testing.md) で説明したものに似たファイル構成を考えます:
    
    ```
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    `main.py` は次のようになります:
    
    {* ../../docs_src/async_tests/app_a_py310/main.py *}
    
    `test_main.py` は `main.py` のテストを持ち、次のようになります:
    
    {* ../../docs_src/async_tests/app_a_py310/test_main.py *}
    
    ## 実行 { #run-it }
    
    テストはいつも通り次で実行できます:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 4.5K bytes
    - Click Count (0)
  6. src/main/assemblies/zip-bin.xml

    <?xml version="1.0"?>
    <assembly>
    	<id>zip</id>
    	<formats>
    		<format>zip</format>
    	</formats>
    
    	<includeBaseDirectory>false</includeBaseDirectory>
    
    	<componentDescriptors>
    		<componentDescriptor>src/main/assemblies/common-bin.xml
    		</componentDescriptor>
    	</componentDescriptors>
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Dec 13 08:20:29 GMT 2015
    - 291 bytes
    - Click Count (0)
  7. build-logic-commons/basics/build.gradle.kts

        compileOnly(buildLibs.kotlinCompilerEmbeddable) {
            because("Required by KotlinSourceParser")
        }
        implementation(buildLibs.kgp) {
            because("For manually defined KotlinSourceSet accessor - sourceSets.main.get().kotlin")
        }
    
        testImplementation(testLibs.junit5JupiterEngine)
    
        testRuntimeOnly(testLibs.junitPlatform)
    }
    
    tasks.test {
        useJUnitPlatform()
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Jan 30 09:06:26 GMT 2026
    - 903 bytes
    - Click Count (0)
  8. docs/fr/docs/tutorial/security/first-steps.md

    ## Voir à quoi cela ressemble { #how-it-looks }
    
    Commençons par utiliser le code et voir comment cela fonctionne, puis nous reviendrons pour comprendre ce qui se passe.
    
    ## Créer `main.py` { #create-main-py }
    
    Copiez l'exemple dans un fichier `main.py` :
    
    {* ../../docs_src/security/tutorial001_an_py310.py *}
    
    ## Exécuter { #run-it }
    
    /// info
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 9.3K bytes
    - Click Count (0)
  9. tests/test_tutorial/test_behind_a_proxy/test_tutorial001.py

            {
                "openapi": "3.1.0",
                "info": {"title": "FastAPI", "version": "0.1.0"},
                "paths": {
                    "/app": {
                        "get": {
                            "summary": "Read Main",
                            "operationId": "read_main_app_get",
                            "responses": {
                                "200": {
                                    "description": "Successful Response",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 1.2K bytes
    - Click Count (0)
  10. docs/pt/docs/deployment/server-workers.md

       <span style="background-color:#007166"><font color="#D3D7CF"> module </font></span>  🐍 main.py
    
         <span style="background-color:#007166"><font color="#D3D7CF"> code </font></span>  Importing the FastAPI app object from the module with the
                 following code:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 8.5K bytes
    - Click Count (0)
Back to Top