Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for dt_field (0.06 sec)

  1. tests/test_jsonable_encoder.py

            class Config:
                pass
    
        model = ModelWithCustomEncoder(dt_field=datetime(2019, 1, 1, 8))
        assert jsonable_encoder(model) == {"dt_field": "2019-01-01T08:00:00+00:00"}
        subclass_model = ModelWithCustomEncoderSubclass(dt_field=datetime(2019, 1, 1, 8))
        assert jsonable_encoder(subclass_model) == {"dt_field": "2019-01-01T08:00:00+00:00"}
    
    
    def test_encode_model_with_config():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 21:56:59 UTC 2024
    - 9K bytes
    - Viewed (0)
  2. tests/test_datetime_custom_encoder.py

        class ModelWithDatetimeField(BaseModel):
            dt_field: datetime
    
            @field_serializer("dt_field")
            def serialize_datetime(self, dt_field: datetime):
                return dt_field.replace(microsecond=0, tzinfo=timezone.utc).isoformat()
    
        app = FastAPI()
        model = ModelWithDatetimeField(dt_field=datetime(2019, 1, 1, 8))
    
        @app.get("/model", response_model=ModelWithDatetimeField)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/rank/fusion/RankFusionProcessorTest.java

                    assertEquals("0", list.get(0).get(ID_FIELD));
                    assertEquals("9", list.get(1).get(ID_FIELD));
                    assertEquals("1", list.get(2).get(ID_FIELD));
                    assertEquals("8", list.get(3).get(ID_FIELD));
                    assertEquals("2", list.get(4).get(ID_FIELD));
                    assertEquals("7", list.get(5).get(ID_FIELD));
                    assertEquals("3", list.get(6).get(ID_FIELD));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  4. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/NullabilityBreakingChangesRule.groovy

                    }
                }
            }
    
            if (member instanceof JApiField) {
    
                JApiField field = (JApiField) member
                CtField oldField = field.oldFieldOptional.get()
                CtField newField = field.newFieldOptional.get()
    
                def oldNullability = hasNullableAnnotation(oldField)
                def newNullability = hasNullableAnnotation(newField)
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Sat Apr 13 10:04:28 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  5. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/metadata/KotlinMetadataQueries.kt

    import gradlebuild.binarycompatibility.intValue
    import gradlebuild.binarycompatibility.stringArrayValue
    import gradlebuild.binarycompatibility.stringValue
    import javassist.CtClass
    import javassist.CtConstructor
    import javassist.CtField
    import javassist.CtMember
    import javassist.CtMethod
    import javassist.Modifier
    import javassist.bytecode.annotation.Annotation
    import javassist.bytecode.annotation.AnnotationImpl
    import kotlinx.metadata.KmFunction
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Aug 21 12:41:59 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/sources/KotlinSourceQueries.kt

    import japicmp.model.JApiConstructor
    import japicmp.model.JApiField
    import japicmp.model.JApiMethod
    import javassist.CtBehavior
    import javassist.CtClass
    import javassist.CtConstructor
    import javassist.CtField
    import javassist.CtMember
    import javassist.CtMethod
    import javassist.Modifier
    import org.jetbrains.kotlin.kdoc.psi.api.KDoc
    import org.jetbrains.kotlin.lexer.KtTokens
    import org.jetbrains.kotlin.psi.KtClassOrObject
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Jul 04 08:05:22 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  7. src/cmd/cgo/ast.go

    	case *ast.StructType:
    		f.walk(n.Fields, ctxField, visit)
    	case *ast.FuncType:
    		if tparams := funcTypeTypeParams(n); tparams != nil {
    			f.walk(tparams, ctxParam, visit)
    		}
    		f.walk(n.Params, ctxParam, visit)
    		if n.Results != nil {
    			f.walk(n.Results, ctxParam, visit)
    		}
    	case *ast.InterfaceType:
    		f.walk(n.Methods, ctxField, visit)
    	case *ast.MapType:
    		f.walk(&n.Key, ctxType, visit)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Oct 14 15:47:06 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  8. tests/scan_test.go

    	}
    }
    
    func TestScanRowsNullValuesScanToFieldDefault(t *testing.T) {
    	DB.Save(&User{})
    
    	rows, err := DB.Table("users").
    		Select(`
    			NULL AS bool_field,
    			NULL AS int_field,
    			NULL AS int8_field,
    			NULL AS int16_field,
    			NULL AS int32_field,
    			NULL AS int64_field,
    			NULL AS uint_field,
    			NULL AS uint8_field,
    			NULL AS uint16_field,
    			NULL AS uint32_field,
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 10:57:36 UTC 2024
    - 10.9K bytes
    - Viewed (0)
Back to top