diff options
Diffstat (limited to 'tests/integration/api_repo_edit_test.go')
-rw-r--r-- | tests/integration/api_repo_edit_test.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/integration/api_repo_edit_test.go b/tests/integration/api_repo_edit_test.go index 9594b86d7e..30dc73ef1b 100644 --- a/tests/integration/api_repo_edit_test.go +++ b/tests/integration/api_repo_edit_test.go @@ -194,10 +194,10 @@ func TestAPIRepoEdit(t *testing.T) { // check repo1 was written to database repo1edited = unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: 1}) repo1editedOption = getRepoEditOptionFromRepo(repo1edited) - assert.Equal(t, *repo1editedOption.HasIssues, true) + assert.True(t, *repo1editedOption.HasIssues) assert.Nil(t, repo1editedOption.ExternalTracker) assert.Equal(t, *repo1editedOption.InternalTracker, *repoEditOption.InternalTracker) - assert.Equal(t, *repo1editedOption.HasWiki, true) + assert.True(t, *repo1editedOption.HasWiki) assert.Nil(t, repo1editedOption.ExternalWiki) // Test editing repo1 to use external issue and wiki @@ -216,9 +216,9 @@ func TestAPIRepoEdit(t *testing.T) { // check repo1 was written to database repo1edited = unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: 1}) repo1editedOption = getRepoEditOptionFromRepo(repo1edited) - assert.Equal(t, *repo1editedOption.HasIssues, true) + assert.True(t, *repo1editedOption.HasIssues) assert.Equal(t, *repo1editedOption.ExternalTracker, *repoEditOption.ExternalTracker) - assert.Equal(t, *repo1editedOption.HasWiki, true) + assert.True(t, *repo1editedOption.HasWiki) assert.Equal(t, *repo1editedOption.ExternalWiki, *repoEditOption.ExternalWiki) repoEditOption.ExternalTracker.ExternalTrackerStyle = "regexp" @@ -229,7 +229,7 @@ func TestAPIRepoEdit(t *testing.T) { assert.NotNil(t, repo) repo1edited = unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: 1}) repo1editedOption = getRepoEditOptionFromRepo(repo1edited) - assert.Equal(t, *repo1editedOption.HasIssues, true) + assert.True(t, *repo1editedOption.HasIssues) assert.Equal(t, *repo1editedOption.ExternalTracker, *repoEditOption.ExternalTracker) // Do some tests with invalid URL for external tracker and wiki @@ -259,9 +259,9 @@ func TestAPIRepoEdit(t *testing.T) { repo1edited = unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: 1}) repo1editedOption = getRepoEditOptionFromRepo(repo1edited) assert.Equal(t, *repo1editedOption.Description, *repoEditOption.Description) - assert.Equal(t, *repo1editedOption.HasIssues, true) + assert.True(t, *repo1editedOption.HasIssues) assert.NotNil(t, *repo1editedOption.ExternalTracker) - assert.Equal(t, *repo1editedOption.HasWiki, true) + assert.True(t, *repo1editedOption.HasWiki) assert.NotNil(t, *repo1editedOption.ExternalWiki) // reset repo in db |