@@ -20,7 +20,7 @@ import (
2020
2121func TestAPICreateUserProject (t * testing.T ) {
2222 defer tests .PrepareTestEnv (t )()
23- const title , description , boardType = "project_name" , "project_description" , uint8 (project_model .BoardTypeBasicKanban )
23+ const title , description , boardType = "project_name" , "project_description" , uint8 (project_model .TemplateTypeBasicKanban )
2424
2525 token := getUserToken (t , "user2" , auth_model .AccessTokenScopeWriteIssue , auth_model .AccessTokenScopeWriteUser )
2626
@@ -34,13 +34,13 @@ func TestAPICreateUserProject(t *testing.T) {
3434 DecodeJSON (t , resp , & apiProject )
3535 assert .Equal (t , title , apiProject .Title )
3636 assert .Equal (t , description , apiProject .Description )
37- assert .Equal (t , boardType , apiProject .BoardType )
37+ assert .Equal (t , boardType , apiProject .TemplateType )
3838 assert .Equal (t , "user2" , apiProject .Creator .UserName )
3939}
4040
4141func TestAPICreateOrgProject (t * testing.T ) {
4242 defer tests .PrepareTestEnv (t )()
43- const title , description , boardType = "project_name" , "project_description" , uint8 (project_model .BoardTypeBasicKanban )
43+ const title , description , boardType = "project_name" , "project_description" , uint8 (project_model .TemplateTypeBasicKanban )
4444
4545 orgName := "org17"
4646 token := getUserToken (t , "user2" , auth_model .AccessTokenScopeWriteIssue , auth_model .AccessTokenScopeWriteOrganization )
@@ -56,14 +56,14 @@ func TestAPICreateOrgProject(t *testing.T) {
5656 DecodeJSON (t , resp , & apiProject )
5757 assert .Equal (t , title , apiProject .Title )
5858 assert .Equal (t , description , apiProject .Description )
59- assert .Equal (t , boardType , apiProject .BoardType )
59+ assert .Equal (t , boardType , apiProject .TemplateType )
6060 assert .Equal (t , "user2" , apiProject .Creator .UserName )
6161 assert .Equal (t , "org17" , apiProject .Owner .UserName )
6262}
6363
6464func TestAPICreateRepoProject (t * testing.T ) {
6565 defer tests .PrepareTestEnv (t )()
66- const title , description , boardType = "project_name" , "project_description" , uint8 (project_model .BoardTypeBasicKanban )
66+ const title , description , boardType = "project_name" , "project_description" , uint8 (project_model .TemplateTypeBasicKanban )
6767
6868 ownerName := "user2"
6969 repoName := "repo1"
@@ -80,7 +80,7 @@ func TestAPICreateRepoProject(t *testing.T) {
8080 DecodeJSON (t , resp , & apiProject )
8181 assert .Equal (t , title , apiProject .Title )
8282 assert .Equal (t , description , apiProject .Description )
83- assert .Equal (t , boardType , apiProject .BoardType )
83+ assert .Equal (t , boardType , apiProject .TemplateType )
8484 assert .Equal (t , "repo1" , apiProject .Repo .Name )
8585}
8686
0 commit comments