mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-04-26 06:04:46 +00:00
tests/integration/editor_test.go aktualisiert
This commit is contained in:
parent
90a92c0332
commit
aed092240e
1 changed files with 8 additions and 4 deletions
|
@ -407,22 +407,26 @@ func TestCommitMail(t *testing.T) {
|
||||||
|
|
||||||
file1UUID := uploadFile(t, "upload_file_1", "Uploaded a file!")
|
file1UUID := uploadFile(t, "upload_file_1", "Uploaded a file!")
|
||||||
file2UUID := uploadFile(t, "upload_file_2", "Uploaded another file!")
|
file2UUID := uploadFile(t, "upload_file_2", "Uploaded another file!")
|
||||||
|
file1UUIDFullpathKey := fmt.Sprintf("files_fullpath[%s]", file1UUID)
|
||||||
|
file2UUIDFullpathKey := fmt.Sprintf("files_fullpath[%s]", file2UUID)
|
||||||
|
|
||||||
assertCase(t, caseOpts{
|
assertCase(t, caseOpts{
|
||||||
fileName: "upload_file_1",
|
fileName: "upload_file_1",
|
||||||
link: "user2/repo1/_upload/master",
|
link: "user2/repo1/_upload/master",
|
||||||
skipLastCommit: true,
|
skipLastCommit: true,
|
||||||
base: map[string]string{
|
base: map[string]string{
|
||||||
"commit_choice": "direct",
|
"commit_choice": "direct",
|
||||||
"files": file1UUID,
|
"files": file1UUID,
|
||||||
|
file1UUIDFullpathKey: "upload_file_1",
|
||||||
},
|
},
|
||||||
}, caseOpts{
|
}, caseOpts{
|
||||||
fileName: "upload_file_2",
|
fileName: "upload_file_2",
|
||||||
link: "user2/repo1/_upload/master",
|
link: "user2/repo1/_upload/master",
|
||||||
skipLastCommit: true,
|
skipLastCommit: true,
|
||||||
base: map[string]string{
|
base: map[string]string{
|
||||||
"commit_choice": "direct",
|
"commit_choice": "direct",
|
||||||
"files": file2UUID,
|
"files": file2UUID,
|
||||||
|
file2UUIDFullpathKey: "upload_file_2",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue