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