Search Options

Results per page
Sort
Preferred Languages
Advance

Results 901 - 910 of 9,260 for import_ (0.27 sec)

  1. tests/test_tutorial/test_extra_models/test_tutorial003.py

    from dirty_equals import IsOneOf
    from fastapi.testclient import TestClient
    
    from docs_src.extra_models.tutorial003 import app
    
    client = TestClient(app)
    
    
    def test_get_car():
        response = client.get("/items/item1")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "description": "All my friends drive a low rider",
            "type": "car",
        }
    
    
    def test_get_plane():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Aug 04 20:47:07 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/SocketChannelTest.kt

    import javax.net.ssl.StandardConstants
    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import okhttp3.Protocol.HTTP_1_1
    import okhttp3.Protocol.HTTP_2
    import okhttp3.Provider.CONSCRYPT
    import okhttp3.Provider.JSSE
    import okhttp3.TlsExtensionMode.DISABLED
    import okhttp3.TlsExtensionMode.STANDARD
    import okhttp3.TlsVersion.TLS_1_2
    import okhttp3.TlsVersion.TLS_1_3
    import okhttp3.testing.PlatformRule
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8K bytes
    - Viewed (0)
  3. mockwebserver-junit4/build.gradle.kts

    import com.vanniktech.maven.publish.JavadocJar
    import com.vanniktech.maven.publish.KotlinJvm
    
    plugins {
      kotlin("jvm")
      id("org.jetbrains.dokka")
      id("com.vanniktech.maven.publish.base")
      id("binary-compatibility-validator")
    }
    
    tasks.jar {
      manifest {
        attributes("Automatic-Module-Name" to "mockwebserver3.junit4")
      }
    }
    
    dependencies {
      api(projects.mockwebserver3)
      api(libs.junit)
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Jan 04 05:32:07 UTC 2024
    - 510 bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/api/admin/backup/ApiAdminBackupAction.java

    import static org.codelibs.fess.app.web.admin.backup.AdminBackupAction.getSearchLogNdjsonWriteCall;
    import static org.codelibs.fess.app.web.admin.backup.AdminBackupAction.getUserInfoNdjsonWriteCall;
    
    import java.io.BufferedWriter;
    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStreamWriter;
    import java.io.Writer;
    import java.util.List;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:15 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  5. fastapi/security/__init__.py

    from .api_key import APIKeyCookie as APIKeyCookie
    from .api_key import APIKeyHeader as APIKeyHeader
    from .api_key import APIKeyQuery as APIKeyQuery
    from .http import HTTPAuthorizationCredentials as HTTPAuthorizationCredentials
    from .http import HTTPBasic as HTTPBasic
    from .http import HTTPBasicCredentials as HTTPBasicCredentials
    from .http import HTTPBearer as HTTPBearer
    from .http import HTTPDigest as HTTPDigest
    from .oauth2 import OAuth2 as OAuth2
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Dec 20 18:50:00 UTC 2020
    - 881 bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

    package jcifs.internal.smb1;
    
    
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import jcifs.Configuration;
    import jcifs.RuntimeCIFSException;
    import jcifs.SmbConstants;
    import jcifs.internal.CommonServerMessageBlock;
    import jcifs.internal.CommonServerMessageBlockRequest;
    import jcifs.internal.CommonServerMessageBlockResponse;
    import jcifs.internal.RequestWithPath;
    import jcifs.internal.SMBProtocolDecodingException;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Aug 05 09:45:59 UTC 2018
    - 32.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/tests/KerberosTest.java

    import javax.security.auth.kerberos.KeyTab;
    
    import org.ietf.jgss.GSSException;
    import org.junit.Assume;
    import org.junit.Before;
    import org.junit.Test;
    import org.junit.runner.RunWith;
    import org.junit.runners.Parameterized;
    import org.junit.runners.Parameterized.Parameters;
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import jcifs.CIFSContext;
    import jcifs.CIFSException;
    import jcifs.ResolverType;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Mar 01 09:46:04 UTC 2020
    - 11.5K bytes
    - Viewed (0)
  8. docs_src/body_nested_models/tutorial004_py310.py

    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Image(BaseModel):
        url: str
        name: str
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
        tags: set[str] = set()
        image: Image | None = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed May 11 17:29:02 UTC 2022
    - 455 bytes
    - Viewed (0)
  9. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/JapicmpTask.java

    import org.gradle.util.GradleVersion;
    import org.gradle.workers.WorkQueue;
    import org.gradle.workers.WorkerExecutor;
    
    import javax.inject.Inject;
    import java.io.File;
    import java.net.URISyntaxException;
    import java.security.CodeSource;
    import java.security.ProtectionDomain;
    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.HashSet;
    import java.util.List;
    import java.util.Set;
    
    @CacheableTask
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Apr 26 10:58:32 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_additional_status_codes/test_tutorial001.py

    from fastapi.testclient import TestClient
    
    from docs_src.additional_status_codes.tutorial001 import app
    
    client = TestClient(app)
    
    
    def test_update():
        response = client.put("/items/foo", json={"name": "Wrestlers"})
        assert response.status_code == 200, response.text
        assert response.json() == {"name": "Wrestlers", "size": None}
    
    
    def test_create():
        response = client.put("/items/red", json={"name": "Chillies"})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Jul 09 18:06:12 UTC 2020
    - 546 bytes
    - Viewed (0)
Back to top