Skip to content

Commit 71a479d

Browse files
committed
feat(csv): import expected signature from CSV
1 parent 533e62f commit 71a479d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

backend/internal/presentation/api/admin/handler_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func TestAdminHandler_GetDocumentStatus_WithUnexpectedSignatures(t *testing.T) {
8888
}
8989

9090
// Create admin handler
91-
handler := admin.NewHandler(docRepo, expectedSignerRepo, nil, sigService, "https://example.com")
91+
handler := admin.NewHandler(docRepo, expectedSignerRepo, nil, sigService, "https://example.com", 500)
9292

9393
// Create HTTP request
9494
req := httptest.NewRequest(http.MethodGet, "/api/v1/admin/documents/"+docID+"/status", nil)
@@ -211,7 +211,7 @@ func TestAdminHandler_GetDocumentStatus_NoExpectedSigners(t *testing.T) {
211211
}
212212

213213
// Create admin handler
214-
handler := admin.NewHandler(docRepo, expectedSignerRepo, nil, sigService, "https://example.com")
214+
handler := admin.NewHandler(docRepo, expectedSignerRepo, nil, sigService, "https://example.com", 500)
215215

216216
// Create HTTP request
217217
req := httptest.NewRequest(http.MethodGet, "/api/v1/admin/documents/"+docID+"/status", nil)

backend/internal/presentation/api/admin/handler_unit_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ func (m *mockSignatureService) GetDocumentSignatures(ctx context.Context, docID
160160
// ============================================================================
161161

162162
func createTestHandler(docRepo documentRepository, signerRepo expectedSignerRepository, reminderSvc reminderService, sigService signatureService) *Handler {
163-
return NewHandler(docRepo, signerRepo, reminderSvc, sigService, "https://test.example.com")
163+
return NewHandler(docRepo, signerRepo, reminderSvc, sigService, "https://test.example.com", 500)
164164
}
165165

166166
func createContextWithUser(email string, isAdmin bool) context.Context {

0 commit comments

Comments
 (0)