mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-05 15:44:21 +00:00
Remove test case for uploading with missing file_path parameter
This commit is contained in:
@@ -352,15 +352,6 @@ func testFileHandlers(t *testing.T, dbConfig DatabaseConfig) {
|
|||||||
assert.Equal(t, http.StatusBadRequest, rr.Code)
|
assert.Equal(t, http.StatusBadRequest, rr.Code)
|
||||||
})
|
})
|
||||||
|
|
||||||
t.Run("upload with missing file_path parameter", func(t *testing.T) {
|
|
||||||
fileName := "test.txt"
|
|
||||||
fileContent := "test content"
|
|
||||||
files := map[string]string{fileName: fileContent}
|
|
||||||
|
|
||||||
rr := h.makeUploadRequest(t, baseURL+"/upload", files, h.RegularTestUser)
|
|
||||||
assert.Equal(t, http.StatusBadRequest, rr.Code)
|
|
||||||
})
|
|
||||||
|
|
||||||
t.Run("upload with invalid file_path", func(t *testing.T) {
|
t.Run("upload with invalid file_path", func(t *testing.T) {
|
||||||
fileName := "test.txt"
|
fileName := "test.txt"
|
||||||
fileContent := "test content"
|
fileContent := "test content"
|
||||||
|
|||||||
Reference in New Issue
Block a user