增加组织架构
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package backend
|
||||
|
||||
import "testing"
|
||||
|
||||
// TestRegisterOrganizationRoutes 确认组织架构路由能为 erp 与 oa 两个前缀完成注册且不冲突。
|
||||
// beego 在注册重复路由或非法方法名时会 panic,这里通过实际注册来兜住这类错误。
|
||||
func TestRegisterOrganizationRoutes(t *testing.T) {
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
t.Fatalf("注册组织架构路由失败: %v", r)
|
||||
}
|
||||
}()
|
||||
|
||||
registerOrganizationRoutes("erp")
|
||||
registerOrganizationRoutes("oa")
|
||||
}
|
||||
Reference in New Issue
Block a user