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:
2026-02-08 14:32:37 -05:00
parent a9e0b33002
commit 38acc46988
7 changed files with 45 additions and 45 deletions
+1 -1
View File
@@ -331,7 +331,7 @@ func TestAnalyticsPopularBooks(t *testing.T) {
token := loginTestUser(t, ts, db)
// First create a book and some reading history
bookID := createTestEbookID(t, ts, token)
bookID := createTestMediaItemID(t, ts, token)
// Create reading history for the book
historyReq := map[string]interface{}{