From 999a7f73c1b19adc3093d453d0c5bc1dc6efb709 Mon Sep 17 00:00:00 2001 From: mkelvers Date: Wed, 6 May 2026 23:14:46 +0200 Subject: [PATCH] fix: remaining database qualifiers in tests --- api/playback/proxy_security_test.go | 2 +- api/watchlist/service_test.go | 14 +++++++------- integrations/jikan/studio_test.go | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/api/playback/proxy_security_test.go b/api/playback/proxy_security_test.go index 2253186..5513310 100644 --- a/api/playback/proxy_security_test.go +++ b/api/playback/proxy_security_test.go @@ -41,5 +41,5 @@ func TestProxyTokenScopeValidation(t *testing.T) { } type fakeProxyQuerier struct { - database.Querier + db.Querier } diff --git a/api/watchlist/service_test.go b/api/watchlist/service_test.go index 08988ad..b4b7cfa 100644 --- a/api/watchlist/service_test.go +++ b/api/watchlist/service_test.go @@ -8,23 +8,23 @@ import ( ) type fakeQuerier struct { - database.Querier + db.Querier upsertAnimeCalled bool upsertEntryCalled bool - addRows []database.GetUserWatchListRow + addRows []db.GetUserWatchListRow } -func (f *fakeQuerier) UpsertAnime(ctx context.Context, arg database.UpsertAnimeParams) (database.Anime, error) { +func (f *fakeQuerier) UpsertAnime(ctx context.Context, arg db.UpsertAnimeParams) (db.Anime, error) { f.upsertAnimeCalled = true - return database.Anime{}, nil + return db.Anime{}, nil } -func (f *fakeQuerier) UpsertWatchListEntry(ctx context.Context, arg database.UpsertWatchListEntryParams) (database.WatchListEntry, error) { +func (f *fakeQuerier) UpsertWatchListEntry(ctx context.Context, arg db.UpsertWatchListEntryParams) (db.WatchListEntry, error) { f.upsertEntryCalled = true - return database.WatchListEntry{}, nil + return db.WatchListEntry{}, nil } -func (f *fakeQuerier) GetUserWatchList(ctx context.Context, userID string) ([]database.GetUserWatchListRow, error) { +func (f *fakeQuerier) GetUserWatchList(ctx context.Context, userID string) ([]db.GetUserWatchListRow, error) { return f.addRows, nil } diff --git a/integrations/jikan/studio_test.go b/integrations/jikan/studio_test.go index b3b53dc..b747f77 100644 --- a/integrations/jikan/studio_test.go +++ b/integrations/jikan/studio_test.go @@ -11,7 +11,7 @@ import ( ) type staleCacheQuerier struct { - database.Querier + db.Querier staleJSON string }