2019-05-06 21:09:31 +09:00
|
|
|
// Copyright 2019 The Gitea Authors. All rights reserved.
|
2022-11-28 03:20:29 +09:00
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
2022-09-03 04:18:23 +09:00
|
|
|
package integration
|
2019-05-06 21:09:31 +09:00
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
"testing"
|
2022-09-03 04:18:23 +09:00
|
|
|
|
|
|
|
"code.gitea.io/gitea/tests"
|
2019-05-06 21:09:31 +09:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestPullView_ReviewerMissed(t *testing.T) {
|
2022-09-03 04:18:23 +09:00
|
|
|
defer tests.PrepareTestEnv(t)()
|
2019-05-06 21:09:31 +09: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)
|
|
|
|
}
|