refactor(tests): update test helpers and all test file references
- Rename createTestEbookID to createTestMediaItemID in test_helpers.go - Update test helper comments and variable names (ebookReq -> mediaItemReq, etc.) - Update all test file references: - analytics_test.go - book_matching_test.go - collections_bulk_test.go - kobo_test.go - media_bulk_test.go - opds_test.go - Rename ebookID variable to mediaItemID in kobo_test.go - Update test data to use 'Test Media Item' instead of 'Test Ebook'
This commit is contained in:
@@ -94,8 +94,8 @@ func TestMediaBulkOperations(t *testing.T) {
|
||||
token := loginTestUser(t, ts, db)
|
||||
|
||||
// Create test books
|
||||
bookID1 := createTestEbookID(t, ts, token)
|
||||
bookID2 := createTestEbookID(t, ts, token)
|
||||
bookID1 := createTestMediaItemID(t, ts, token)
|
||||
bookID2 := createTestMediaItemID(t, ts, token)
|
||||
bookID3 := uuid.New().String()
|
||||
|
||||
req := map[string]interface{}{
|
||||
@@ -234,8 +234,8 @@ func TestMediaBulkOperations(t *testing.T) {
|
||||
token := loginTestUser(t, ts, db)
|
||||
|
||||
// Create test books
|
||||
bookID1 := createTestEbookID(t, ts, token)
|
||||
bookID2 := createTestEbookID(t, ts, token)
|
||||
bookID1 := createTestMediaItemID(t, ts, token)
|
||||
bookID2 := createTestMediaItemID(t, ts, token)
|
||||
|
||||
req := map[string]interface{}{
|
||||
"book_ids": []string{bookID1, bookID2},
|
||||
@@ -274,7 +274,7 @@ func TestMediaBulkOperations(t *testing.T) {
|
||||
token := loginTestUser(t, ts, db)
|
||||
|
||||
// Create test books
|
||||
bookID1 := createTestEbookID(t, ts, token)
|
||||
bookID1 := createTestMediaItemID(t, ts, token)
|
||||
|
||||
req := map[string]interface{}{
|
||||
"book_ids": []string{bookID1},
|
||||
@@ -308,7 +308,7 @@ func TestMediaBulkOperations(t *testing.T) {
|
||||
token := loginTestUser(t, ts, db)
|
||||
|
||||
// Create test books
|
||||
bookID1 := createTestEbookID(t, ts, token)
|
||||
bookID1 := createTestMediaItemID(t, ts, token)
|
||||
|
||||
req := map[string]interface{}{
|
||||
"book_ids": []string{bookID1},
|
||||
|
||||
Reference in New Issue
Block a user