Merge pull request #23 from Haelnorr/tmdb

Fixed tmdb token not set causes tests to fail
This commit is contained in:
2025-03-01 21:34:51 +11:00
committed by GitHub

View File

@@ -9,6 +9,7 @@ import (
func TestConfig() (*config.Config, error) { func TestConfig() (*config.Config, error) {
os.Setenv("SECRET_KEY", ".") os.Setenv("SECRET_KEY", ".")
os.Setenv("TMDB_API_TOKEN", ".")
cfg, err := config.GetConfig(map[string]string{}) cfg, err := config.GetConfig(map[string]string{})
if err != nil { if err != nil {
return nil, errors.Wrap(err, "config.GetConfig") return nil, errors.Wrap(err, "config.GetConfig")