mirror of
https://gitea.com/gitea/tea.git
synced 2026-10-26 19:11:25 +01:00
fix: address verified review findings (pulls-1)
Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
15 files changed
+202
-8
No files matched your search
@@ -64,3 +64,10 @@ func TestConflictHintsFollowTheReason(t *testing.T) {
|
||||
err := &ConflictError{Reason: ReasonArchived, Scope: "alice/old", Hint: "unarchive it with: tea repo edit alice/old --archived=false"}
|
||||
require.EqualError(t, err, "alice/old is archived (read-only); unarchive it with: tea repo edit alice/old --archived=false")
|
||||
}
|
||||
|
||||
func TestClassifyNamesAMissingBranchNotThePullRequest(t *testing.T) {
|
||||
for _, message := range []string{`ref "develp" does not exist`, `new base 'develp' not exist`} {
|
||||
err := Classify(&transport.APIError{Status: http.StatusNotFound, Message: message}, "pull request", "#3", "alice/x")
|
||||
require.EqualError(t, err, `branch "develp" not found in alice/x`)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user