2019-05-06 20:09:31 +08:00
|
|
|
// Copyright 2019 The Gitea Authors. All rights reserved.
|
2022-11-28 02:20:29 +08:00
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
2022-09-03 03:18:23 +08:00
|
|
|
package integration
|
2019-05-06 20:09:31 +08:00
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
"testing"
|
2022-09-03 03:18:23 +08:00
|
|
|
|
|
|
|
"code.gitea.io/gitea/tests"
|
2019-05-06 20:09:31 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestPullView_ReviewerMissed(t *testing.T) {
|
2022-09-03 03:18:23 +08:00
|
|
|
defer tests.PrepareTestEnv(t)()
|
2019-05-06 20:09:31 +08:00
|
|
|
session := loginUser(t, "user1")
|
|
|
|
|
|
|
|
req := NewRequest(t, "GET", "/pulls")
|
|
|
|
session.MakeRequest(t, req, http.StatusOK)
|
|
|
|
|
|
|
|
req = NewRequest(t, "GET", "/user2/repo1/pulls/3")
|
|
|
|
session.MakeRequest(t, req, http.StatusOK)
|
|
|
|
}
|