|
|
@ -19,11 +19,9 @@ func TestCreateIssueDependency(t *testing.T) {
|
|
|
|
|
|
|
|
|
|
|
|
issue1, err := GetIssueByID(1)
|
|
|
|
issue1, err := GetIssueByID(1)
|
|
|
|
assert.NoError(t, err)
|
|
|
|
assert.NoError(t, err)
|
|
|
|
issue1.LoadAttributes()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
issue2, err := GetIssueByID(2)
|
|
|
|
issue2, err := GetIssueByID(2)
|
|
|
|
assert.NoError(t, err)
|
|
|
|
assert.NoError(t, err)
|
|
|
|
issue2.LoadAttributes()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Create a dependency and check if it was successful
|
|
|
|
// Create a dependency and check if it was successful
|
|
|
|
err = CreateIssueDependency(user1, issue1, issue2)
|
|
|
|
err = CreateIssueDependency(user1, issue1, issue2)
|
|
|
|