1
0
Fork 0

Fix integration tests

This commit is contained in:
Frédéric Guillot 2019-10-21 19:51:22 -07:00
parent 37f93d5127
commit 70940e768c
2 changed files with 6 additions and 6 deletions

View file

@ -100,7 +100,7 @@ func TestSearchEntries(t *testing.T) {
t.Fatal(err) t.Fatal(err)
} }
feedID, err := client.CreateFeed("https://github.com/miniflux/miniflux/releases.atom", categories[0].ID) feedID, err := client.CreateFeed("https://miniflux.app/feed.xml", categories[0].ID)
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }

View file

@ -67,7 +67,7 @@ func TestGetUsers(t *testing.T) {
t.Fatalf(`Invalid language, got "%v"`, users[0].Language) t.Fatalf(`Invalid language, got "%v"`, users[0].Language)
} }
if users[0].Theme != "default" { if users[0].Theme != "light_serif" {
t.Fatalf(`Invalid theme, got "%v"`, users[0].Theme) t.Fatalf(`Invalid theme, got "%v"`, users[0].Theme)
} }
@ -104,7 +104,7 @@ func TestCreateStandardUser(t *testing.T) {
t.Fatalf(`Invalid language, got "%v"`, user.Language) t.Fatalf(`Invalid language, got "%v"`, user.Language)
} }
if user.Theme != "default" { if user.Theme != "light_serif" {
t.Fatalf(`Invalid theme, got "%v"`, user.Theme) t.Fatalf(`Invalid theme, got "%v"`, user.Theme)
} }
@ -168,7 +168,7 @@ func TestGetUserByID(t *testing.T) {
t.Fatalf(`Invalid language, got "%v"`, user.Language) t.Fatalf(`Invalid language, got "%v"`, user.Language)
} }
if user.Theme != "default" { if user.Theme != "light_serif" {
t.Fatalf(`Invalid theme, got "%v"`, user.Theme) t.Fatalf(`Invalid theme, got "%v"`, user.Theme)
} }
@ -219,7 +219,7 @@ func TestGetUserByUsername(t *testing.T) {
t.Fatalf(`Invalid language, got "%v"`, user.Language) t.Fatalf(`Invalid language, got "%v"`, user.Language)
} }
if user.Theme != "default" { if user.Theme != "light_serif" {
t.Fatalf(`Invalid theme, got "%v"`, user.Theme) t.Fatalf(`Invalid theme, got "%v"`, user.Theme)
} }
@ -244,7 +244,7 @@ func TestUpdateUserTheme(t *testing.T) {
t.Fatal(err) t.Fatal(err)
} }
theme := "black" theme := "dark_serif"
user, err = client.UpdateUser(user.ID, &miniflux.UserModification{Theme: &theme}) user, err = client.UpdateUser(user.ID, &miniflux.UserModification{Theme: &theme})
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)