approveflow/app/provider/flow_definition/model_test.go

23 lines
535 B
Go
Raw Normal View History

2024-11-14 17:02:41 +08:00
package flow_definition
import (
"approveflow/app/base"
"approveflow/app/provider/database_connect"
tests "approveflow/test"
"testing"
)
func TestModel(t *testing.T) {
container := tests.InitBaseContainer()
databaseConnectService := container.MustMake(database_connect.DatabaseConnectKey).(database_connect.Service)
db := databaseConnectService.DefaultDatabaseConnect()
db.AutoMigrate(ApprovalFlow{},
DynamicApprovalStepConfig{},
ApprovalPathConfig{},
base.BaseExtensionField{},
ApprovalStep{},
ApprovalRule{})
}