Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 2,024 for soient (1.63 sec)

  1. tests/test_tutorial/test_security/test_tutorial003_an_py39.py

    from fastapi.testclient import TestClient
    
    from ...utils import needs_py39
    
    
    @pytest.fixture(name="client")
    def get_client():
        from docs_src.security.tutorial003_an_py39 import app
    
        client = TestClient(app)
        return client
    
    
    @needs_py39
    def test_login(client: TestClient):
        response = client.post("/token", data={"username": "johndoe", "password": "secret"})
        assert response.status_code == 200, response.text
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  2. tests/test_dependency_cache.py

            "scope_counter_2": scope_count_2,
        }
    
    
    client = TestClient(app)
    
    
    def test_normal_counter():
        counter_holder["counter"] = 0
        response = client.get("/counter/")
        assert response.status_code == 200, response.text
        assert response.json() == {"counter": 1}
        response = client.get("/counter/")
        assert response.status_code == 200, response.text
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 23 13:30:24 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  3. cmd/admin-handlers-users_test.go

    func (c *check) mustListObjects(ctx context.Context, client *minio.Client, bucket string) {
    	c.Helper()
    	res := client.ListObjects(ctx, bucket, minio.ListObjectsOptions{})
    	v, ok := <-res
    	if ok && v.Err != nil {
    		c.Fatalf("user was unable to list: %v", v.Err)
    	}
    }
    
    func (c *check) mustListBuckets(ctx context.Context, client *minio.Client) {
    	c.Helper()
    	_, err := client.ListBuckets(ctx)
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 22 00:33:43 UTC 2024
    - 47.3K bytes
    - Viewed (0)
  4. tests/test_security_oauth2_optional.py

        return current_user
    
    
    client = TestClient(app)
    
    
    def test_security_oauth2():
        response = client.get("/users/me", headers={"Authorization": "Bearer footokenbar"})
        assert response.status_code == 200, response.text
        assert response.json() == {"username": "Bearer footokenbar"}
    
    
    def test_security_oauth2_password_other_header():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  5. okhttp-tls/README.md

        .addTrustedCertificate(rootCertificate.certificate())
        .build();
    OkHttpClient client = new OkHttpClient.Builder()
        .sslSocketFactory(clientCertificates.sslSocketFactory(), clientCertificates.trustManager())
        .build();
    ```
    
    Client Authentication
    ---------------------
    
    The above scenario is representative of most TLS set ups: the client uses certificates to validate
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Dec 17 15:34:10 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/suggest/index/contents/document/ESSourceReaderTest.java

            suggester = Suggester.builder().build(runner.client(), "SuggesterTest");
            suggester.createIndexIfNothing();
        }
    
        @Test
        public void test_Read() throws Exception {
            String indexName = "test-index";
            Client client = runner.client();
            SuggestSettings settings = suggester.settings();
            int num = 10000;
    
            addDocument(indexName, client, num);
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_body_multiple_params/test_tutorial003_py310.py

    from fastapi.testclient import TestClient
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(name="client")
    def get_client():
        from docs_src.body_multiple_params.tutorial003_py310 import app
    
        client = TestClient(app)
        return client
    
    
    @needs_py310
    def test_post_body_valid(client: TestClient):
        response = client.put(
            "/items/5",
            json={
                "importance": 2,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/suggest/request/Request.java

    import org.codelibs.fess.suggest.concurrent.Deferred;
    import org.codelibs.fess.suggest.exception.SuggesterException;
    import org.opensearch.client.Client;
    import org.opensearch.core.common.Strings;
    
    public abstract class Request<T extends Response> {
        public Deferred<T>.Promise execute(final Client client) {
            final String error = getValidationError();
            if (!Strings.isNullOrEmpty(error)) {
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/suggest/index/writer/SuggestWriter.java

    import org.opensearch.client.Client;
    import org.opensearch.index.query.QueryBuilder;
    
    public interface SuggestWriter {
        SuggestWriterResult write(Client client, SuggestSettings settings, String index, SuggestItem[] items, boolean update);
    
        SuggestWriterResult delete(Client client, SuggestSettings settings, String index, String id);
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_request_form_models/test_tutorial002_an.py

    from tests.utils import needs_pydanticv2
    
    
    @pytest.fixture(name="client")
    def get_client():
        from docs_src.request_form_models.tutorial002_an import app
    
        client = TestClient(app)
        return client
    
    
    @needs_pydanticv2
    def test_post_body_form(client: TestClient):
        response = client.post("/login/", data={"username": "Foo", "password": "secret"})
        assert response.status_code == 200
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 06 17:31:18 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top