Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 376 for Targs (0.02 sec)

  1. tests/test_tutorial/test_dependencies/test_tutorial008c_an.py

    
    def test_fastapi_error(client: TestClient):
        with pytest.raises(FastAPIError) as exc_info:
            client.get("/items/portal-gun")
        assert "No response object was returned" in exc_info.value.args[0]
    
    
    def test_internal_server_error():
        from docs_src.dependencies.tutorial008c_an import app
    
        client = TestClient(app, raise_server_exceptions=False)
        response = client.get("/items/portal-gun")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/PostForm.java

          if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
          System.out.println(response.body().string());
        }
      }
    
      public static void main(String... args) throws Exception {
        new PostForm().run();
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun May 22 01:29:42 UTC 2016
    - 1.4K bytes
    - Viewed (0)
  3. scripts/docs.py

            lang = "en"
        lang_path: Path = docs_path / lang
        # Enable line numbers during local development to make it easier to highlight
        args = ["mkdocs", "serve", "--dev-addr", "127.0.0.1:8008"]
        if dirty:
            args.append("--dirty")
        subprocess.run(
            args, env={**os.environ, "LINENUMS": "true"}, cwd=lang_path, check=True
        )
    
    
    def get_updated_config_content() -> Dict[str, Any]:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 08 11:01:17 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

              // Our distinct proxy doesn't work for collections.
              // So just refuse to generate.
              return null;
            }
            args.add(argValue);
          }
          return invokeGeneratorMethod(generate, args.toArray());
        }
        return defaultGenerate(rawType);
      }
    
      private <T> @Nullable T defaultGenerate(Class<T> rawType) {
        if (rawType.isInterface()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  5. docs/debugging/inspect/main.go

    		got, err := io.ReadAll(os.Stdin)
    		if err != nil {
    			fatalErr(err)
    		}
    		fatalErr(json.Unmarshal(got, &input))
    		inputs = []string{input.File}
    		*keyHex = input.Key
    	case len(flag.Args()) == 1:
    		var err error
    		inputs, err = filepathx.Glob(flag.Args()[0])
    		fatalErr(err)
    	default:
    		flag.Usage()
    		fatalIf(true, "Only 1 file can be decrypted")
    		os.Exit(1)
    	}
    	for _, input := range inputs {
    		processFile(input, privateKey)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 31 14:49:23 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_dependencies/test_tutorial008d.py

        from docs_src.dependencies.tutorial008d import InternalError
    
        with pytest.raises(InternalError) as exc_info:
            client.get("/items/portal-gun")
        assert (
            exc_info.value.args[0] == "The portal gun is too dangerous to be owned by Rick"
        )
    
    
    def test_internal_server_error():
        from docs_src.dependencies.tutorial008d import app
    
        client = TestClient(app, raise_server_exceptions=False)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/testing/NullPointerTester.java

        ImmutableList<Parameter> params = invokable.getParameters();
        @Nullable Object[] args = new Object[params.size()];
    
        for (int i = 0; i < args.length; i++) {
          Parameter param = params.get(i);
          if (i != indexOfParamToSetToNull) {
            args[i] = getDefaultValue(param.getType());
            Assert.assertTrue(
                "Can't find or create a sample instance for type '"
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  8. internal/config/policy/opa/legacy.go

    	EnvIamOpaAuthToken = "MINIO_IAM_OPA_AUTHTOKEN"
    )
    
    // SetPolicyOPAConfig - One time migration code needed, for migrating from older config to new for PolicyOPAConfig.
    func SetPolicyOPAConfig(s config.Config, opaArgs Args) {
    	if opaArgs.URL == nil || opaArgs.URL.String() == "" {
    		// Do not enable if opaArgs was empty.
    		return
    	}
    	s[config.PolicyOPASubSys][config.Default] = config.KVS{
    		config.KV{
    			Key:   URL,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  9. cmd/policy_test.go

    		Action:          policy.GetObjectAction,
    		BucketName:      "yourbucket",
    		ConditionValues: map[string][]string{},
    		IsOwner:         true,
    		ObjectName:      "yourobject",
    	}
    
    	testCases := []struct {
    		args           policy.BucketPolicyArgs
    		expectedResult bool
    	}{
    		{anonGetBucketLocationArgs, true},
    		{anonPutObjectActionArgs, true},
    		{anonGetObjectActionArgs, false},
    		{getBucketLocationArgs, true},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/exec/SuggestCreator.java

            OsProbe.getInstance();
            JvmInfo.jvmInfo();
        }
    
        public static void main(final String[] args) {
            final Options options = new Options();
            final CmdLineParser parser = new CmdLineParser(options);
            try {
                parser.parseArgument(args);
            } catch (final CmdLineException e) {
                System.err.println(e.getMessage());
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 10K bytes
    - Viewed (0)
Back to top