Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 4,609 for text (0.1 sec)

  1. tests/test_security_http_digest.py

        assert response.status_code == 200, response.text
        assert response.json() == {"scheme": "Digest", "credentials": "foobar"}
    
    
    def test_security_http_digest_no_credentials():
        response = client.get("/users/me")
        assert response.status_code == 403, response.text
        assert response.json() == {"detail": "Not authenticated"}
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2K bytes
    - Viewed (0)
  2. tests/test_security_oauth2_authorization_code_bearer.py

    def test_no_token():
        response = client.get("/items")
        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Not authenticated"}
    
    
    def test_incorrect_token():
        response = client.get("/items", headers={"Authorization": "Non-existent testtoken"})
        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Not authenticated"}
    
    
    def test_token():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/query/QueryCommand.java

            final FessConfig fessConfig = ComponentUtil.getFessConfig();
            if (text == null || text.length() != 1
                    || !fessConfig.getIndexFieldTitle().equals(f) && !fessConfig.getIndexFieldContent().equals(f)) {
                return QueryBuilders.matchPhraseQuery(f, text);
            }
    
            final UnicodeBlock block = UnicodeBlock.of(text.codePointAt(0));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/MultipartReaderTest.kt

    import java.net.ProtocolException
    import kotlin.test.assertFailsWith
    import okhttp3.Headers.Companion.headersOf
    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.RequestBody.Companion.toRequestBody
    import okhttp3.ResponseBody.Companion.toResponseBody
    import okio.Buffer
    import org.junit.jupiter.api.Tag
    import org.junit.jupiter.api.Test
    
    @Tag("Slowish")
    class MultipartReaderTest {
      @Test fun `parse multipart`() {
        val multipart =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/MultipartBodyTest.kt

        assertThat(buffer.readUtf8()).isEqualTo(expected)
      }
    
      @Test
      fun contentTypeHeaderIsForbidden() {
        val multipart = MultipartBody.Builder()
        assertFailsWith<IllegalArgumentException> {
          multipart.addPart(
            headersOf("Content-Type", "text/plain"),
            "Hello, World!".toRequestBody(null),
          )
        }
      }
    
      @Test
      fun contentLengthHeaderIsForbidden() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_dependencies/test_tutorial008c.py

        response = client.get("/items/foo")
        assert response.status_code == 404, response.text
        assert response.json() == {"detail": "Item not found, there's only a plumbus here"}
    
    
    def test_get(client: TestClient):
        response = client.get("/items/plumbus")
        assert response.status_code == 200, response.text
        assert response.json() == "plumbus"
    
    
    def test_fastapi_error(client: TestClient):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_dependencies/test_tutorial006.py

        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "X-Token header invalid"}
    
    
    def test_get_invalid_second_header():
        response = client.get(
            "/items/", headers={"X-Token": "fake-super-secret-token", "X-Key": "invalid"}
        )
        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "X-Key header invalid"}
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 5K bytes
    - Viewed (0)
  8. src/archive/zip/testdata/test-badbase.zip

    test.txt This is a test text file. gophercolor16x16.png...
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Jan 20 01:04:11 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  9. manifests/addons/dashboards/istio-service-dashboard.json

              "showLineNumbers": false,
              "showMiniMap": false
            },
            "content": "<div class=\"dashboard-header text-center\">\n<span>SERVICE: $service</span>\n</div>",
            "mode": "html"
          },
          "pluginVersion": "10.1.5",
          "transparent": true,
          "type": "text"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${datasource}"
          },
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Mar 27 03:47:04 UTC 2024
    - 111.8K bytes
    - Viewed (0)
  10. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/BasicJavadocLexer.java

                        parseHtmlEncodedChar(text);
                    } else if (scanner.lookingAt(HTML_ENTITY)) {
                        parseHtmlEntity(text);
                    } else {
                        text.append(scanner.getFirst());
                        scanner.next();
                    }
                }
    
                visitor.onText(text.toString());
            }
            visitor.onEnd();
        }
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Mon Aug 19 15:07:24 UTC 2024
    - 7.1K bytes
    - Viewed (0)
Back to top