Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 130 for nonexistent1 (0.17 sec)

  1. tests/test_tutorial/test_security/test_tutorial005.py

        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Could not validate credentials"}
        assert response.headers["WWW-Authenticate"] == 'Bearer scope="me"'
    
    
    def test_incorrect_token_type():
        response = client.get(
            "/users/me", headers={"Authorization": "Notexistent testtoken"}
        )
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:07:10 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/mod_goroot_errors.txt

    # complaining about a malformed module path.
    # This is especially important when GOROOT is set incorrectly,
    # since such an error will occur for every package in std.
    
    # Building a nonexistent std package directly should fail usefully.
    
    ! go build -mod=readonly nonexist
    ! stderr 'import lookup disabled'
    ! stderr 'missing dot'
    stderr '^package nonexist is not in std \('$GOROOT'[/\\]src[/\\]nonexist\)$'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 15 16:24:01 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_security/test_tutorial005_an_py310.py

            "email": "******@****.***",
            "disabled": False,
        }
    
    
    @needs_py310
    def test_incorrect_token(client: TestClient):
        response = client.get("/users/me", headers={"Authorization": "Bearer nonexistent"})
        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Could not validate credentials"}
        assert response.headers["WWW-Authenticate"] == 'Bearer scope="me"'
    
    
    @needs_py310
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:07:10 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  4. pilot/pkg/config/kube/gateway/testdata/invalid.yaml

      rules:
      - backendRefs:
        - name: nonexistent
          port: 80
    ---
    apiVersion: gateway.networking.k8s.io/v1beta1
    kind: HTTPRoute
    metadata:
      name: invalid-backendRef-mixed
      namespace: default
    spec:
      parentRefs:
      - name: gateway
        namespace: istio-system
      hostnames: ["third.domain.example"]
      rules:
      - backendRefs:
        - name: nonexistent
          port: 80
          weight: 1
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 18 22:43:39 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/internal/classpath/CallInterceptingMetaClassTest.groovy

            when:
            withEntryPoint(INVOKE_METHOD, "nonExistent") {
                instance.nonExistent("test")
            }
    
            then:
            instance.intercepted == "nonExistent(String)-non-existent"
    
            when: "calling it outside the entry point scope"
            instance.nonExistent("test")
    
            then: "it should throw an exception as usual"
            thrown(MissingMethodException)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Nov 24 13:33:59 UTC 2023
    - 15K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl-provider-plugins/src/test/kotlin/org/gradle/kotlin/dsl/provider/plugins/precompiled/tasks/ExtractPrecompiledScriptPluginPluginsTest.kt

                equalTo(
                    """
                    ${"buildscript {}".replacedBySpaces()}
                    plugins { java }"""
                )
            )
        }
    
        @Test
        fun `ignores scripts with a nonexistent or empty plugins block`() {
    
            extractPluginsFrom(
    
                scriptPlugin(
                    "no-plugins.gradle.kts",
                    """
                    buildscript {}
                    """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 4K bytes
    - Viewed (0)
  7. platforms/jvm/jvm-services/src/test/groovy/org/gradle/jvm/toolchain/internal/LinuxInstallationSupplierTest.groovy

        def candidates = temporaryFolder.createDir("linux")
        def otherCandidates = temporaryFolder.createDir("other")
        def emptyDir = temporaryFolder.createDir("empty")
        def nonExistent = temporaryFolder.file("non-existent")
    
        def setup() {
            candidates.createDir("11.0.6.hs-adpt")
            candidates.createDir("14")
            otherCandidates.createDir("8.0.262.fx-librca")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 10 18:03:55 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  8. subprojects/core/src/testInterceptors/java/org/gradle/internal/classpath/BasicCallInterceptionTestInterceptorsDeclaration.java

            @ParameterKind.Receiver InterceptorTestReceiver self,
            String parameter,
            @ParameterKind.CallerClassName String consumer
        ) {
            self.intercepted = "nonExistent(String)-non-existent";
        }
    
        @InterceptGroovyCalls
        @CallableKind.GroovyPropertyGetter
        public static String intercept_testString(
            @ParameterKind.Receiver InterceptorTestReceiver self,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 23 08:15:56 UTC 2023
    - 5K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_first_steps/test_tutorial001.py

    from docs_src.first_steps.tutorial001 import app
    
    client = TestClient(app)
    
    
    @pytest.mark.parametrize(
        "path,expected_status,expected_response",
        [
            ("/", 200, {"message": "Hello World"}),
            ("/nonexistent", 404, {"detail": "Not Found"}),
        ],
    )
    def test_get_path(path, expected_status, expected_response):
        response = client.get(path)
        assert response.status_code == expected_status
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/mod_dot.txt

    # golang.org/issue/27122: 'go build' of a nonexistent directory should produce
    # a helpful "no Go files" error message, not a generic "unknown import path".
    ! go list ./subdir
    stderr '^no Go files in '$WORK'[/\\]gopath[/\\]src[/\\]dir[/\\]subdir$'
    
    # golang.org/issue/29280: 'go list -e' for a nonexistent directory should
    # report a nonexistent package with an error.
    go list -e -json ./subdir
    stdout '"Incomplete": true'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 30 22:30:03 UTC 2022
    - 4.6K bytes
    - Viewed (0)
Back to top