refactor testing files

This commit is contained in:
2025-10-08 16:19:58 +02:00
parent 1cc7881ff0
commit 1ead02ab69
6 changed files with 158 additions and 127 deletions

View File

@@ -6,6 +6,7 @@ import (
"strings"
"testing"
"git.artlef.fr/PersonalLibraryManager/internal/testutils"
"github.com/stretchr/testify/assert"
)
@@ -55,7 +56,7 @@ func TestPostUserHandler_PasswordTooBig(t *testing.T) {
}
func testPostUserHandler(t *testing.T, userJson string, expectedCode int) {
router := testSetup()
router := testutils.TestSetup()
w := httptest.NewRecorder()
req, _ := http.NewRequest("POST", "/auth/signup",