- Sort Score
- Num 10 results
- Language All
Results 221 - 230 of 438 for kwargs (0.04 seconds)
-
cmd/net_test.go
t.Errorf("failed with different error, expected: '%v', found:'%v'.", testCase.expectedErr, err) } } }) } } func TestIsHostIP(t *testing.T) { testCases := []struct { args string expectedResult bool }{ {"localhost", false}, {"localhost:9000", false}, {"example.com", false}, {"http://192.168.1.0", false}, {"http://192.168.1.0:9000", false},
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Oct 10 18:57:03 GMT 2025 - 9.2K bytes - Click Count (0) -
tests/test_tutorial/test_dependencies/test_tutorial008c.py
client = TestClient(mod.app) with pytest.raises(FastAPIError) as exc_info: client.get("/items/portal-gun") assert "raising an exception and a dependency with yield" in exc_info.value.args[0] def test_internal_server_error(mod: ModuleType): client = TestClient(mod.app, raise_server_exceptions=False) response = client.get("/items/portal-gun") assert response.status_code == 500, response.text
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 1.4K bytes - Click Count (0) -
tests/test_tutorial/test_python_types/test_tutorial009_tutorial009b.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 805 bytes - Click Count (0) -
tests/test_tutorial/test_python_types/test_tutorial008.py
def test_process_items(): with patch("builtins.print") as mock_print: process_items({"a": 1.0, "b": 2.5}) assert mock_print.call_count == 4 call_args = [arg.args for arg in mock_print.call_args_list] assert call_args == [ ("a",), (1.0,), ("b",), (2.5,),
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 417 bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/UpgradeParser.java
public class UpgradeParser extends BaseParser { @Override protected Options parseCliOptions(LocalContext context) { try { return CommonsCliUpgradeOptions.parse(context.parserRequest.args().toArray(new String[0])); } catch (ParseException e) { throw new IllegalArgumentException("Failed to parse command line options: " + e.getMessage(), e); } }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Jun 11 13:14:09 GMT 2025 - 1.4K bytes - Click Count (0) -
docs/bucket/notifications/README.md
``` KEY: notify_amqp[:name] publish bucket notifications to AMQP endpoints ARGS: url* (url) AMQP server endpoint e.g. `amqp://myuser:mypassword@localhost:5672` exchange (string) name of the AMQP exchange exchange_type (string) AMQP exchange type
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue Aug 12 18:20:36 GMT 2025 - 84.2K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/EncryptParser.java
public class EncryptParser extends BaseParser { @Override protected Options parseCliOptions(LocalContext context) { try { return CommonsCliEncryptOptions.parse(context.parserRequest.args().toArray(new String[0])); } catch (ParseException e) { throw new IllegalArgumentException("Failed to parse command line options: " + e.getMessage(), e); } }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Jun 11 13:14:09 GMT 2025 - 1.4K bytes - Click Count (0) -
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 '"
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Jul 14 14:44:08 GMT 2025 - 25.4K bytes - Click Count (0) -
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},
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri May 24 23:05:23 GMT 2024 - 8.9K bytes - Click Count (0) -
cmd/admin-handlers.go
return } vars := mux.Vars(r) var args dsync.LockArgs var lockers []dsync.NetLocker for path := range strings.SplitSeq(vars["paths"], ",") { if path == "" { continue } args.Resources = append(args.Resources, path) } for _, lks := range z.serverPools[0].erasureLockers { lockers = append(lockers, lks...) }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 99.7K bytes - Click Count (0)