chore: Remove ChangeProjectStatus
- Introduced in 4027c5dd7c
and removed in
the same commit (only used for testing code).
This commit is contained in:
parent
8c3bfcac3b
commit
b7b52fd04d
3 changed files with 1 additions and 19 deletions
|
@ -75,7 +75,7 @@ func TestProject(t *testing.T) {
|
|||
|
||||
assert.Equal(t, project.Title, projectFromDB.Title)
|
||||
|
||||
require.NoError(t, ChangeProjectStatus(db.DefaultContext, project, true))
|
||||
require.NoError(t, ChangeProjectStatusByRepoIDAndID(db.DefaultContext, project.RepoID, project.ID, true))
|
||||
|
||||
// Retrieve from DB afresh to check if it is truly closed
|
||||
projectFromDB, err = GetProjectByID(db.DefaultContext, project.ID)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue