Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for MyUuid (0.06 sec)

  1. tests/test_inherited_custom_class.py

            model_config = {"arbitrary_types_allowed": True}
    
            a_uuid: MyUuid
    
            @field_serializer("a_uuid")
            def serialize_a_uuid(self, v):
                return str(v)
    
        @app.get("/get_custom_class")
        def return_some_user():
            # Test that the fix also works for custom pydantic classes
            return SomeCustomClass(a_uuid=MyUuid("b8799909-f914-42de-91bc-95c819218d01"))
    
        client = TestClient(app)
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 3K bytes
    - Viewed (0)
  2. pkg/util/pod/pod_test.go

    			func(input v1.PodStatus) v1.PodStatus { return input },
    			true,
    			[]byte(fmt.Sprintf(`{"metadata":{"uid":"myuid"}}`)),
    		},
    		{
    			"message change",
    			func(input v1.PodStatus) v1.PodStatus {
    				input.Message = "random message"
    				return input
    			},
    			false,
    			[]byte(fmt.Sprintf(`{"metadata":{"uid":"myuid"},"status":{"message":"random message"}}`)),
    		},
    		{
    			"pod condition change",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 15:22:29 UTC 2022
    - 4.5K bytes
    - Viewed (0)
Back to top