mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Test: Use PascalCase names for all Go subtests in /internal
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
||||
)
|
||||
|
||||
func TestDeleteFile(t *testing.T) {
|
||||
t.Run("delete not existing file", func(t *testing.T) {
|
||||
t.Run("DeleteNotExistingFile", func(t *testing.T) {
|
||||
app, router, _ := NewApiTest()
|
||||
|
||||
DeleteFile(router)
|
||||
@@ -16,7 +16,7 @@ func TestDeleteFile(t *testing.T) {
|
||||
r := PerformRequest(app, "DELETE", "/api/v1/photos/5678/files/23456hbg")
|
||||
assert.Equal(t, http.StatusNotFound, r.Code)
|
||||
})
|
||||
t.Run("delete primary file", func(t *testing.T) {
|
||||
t.Run("DeletePrimaryFile", func(t *testing.T) {
|
||||
app, router, _ := NewApiTest()
|
||||
|
||||
DeleteFile(router)
|
||||
@@ -24,7 +24,7 @@ func TestDeleteFile(t *testing.T) {
|
||||
r := PerformRequest(app, "DELETE", "/api/v1/photos/ps6sg6be2lvl0yh7/files/fs6sg6bw45bnlqdw")
|
||||
assert.Equal(t, http.StatusInternalServerError, r.Code)
|
||||
})
|
||||
t.Run("try to delete file", func(t *testing.T) {
|
||||
t.Run("TryToDeleteFile", func(t *testing.T) {
|
||||
app, router, _ := NewApiTest()
|
||||
|
||||
DeleteFile(router)
|
||||
|
||||
Reference in New Issue
Block a user