mirror of
https://github.com/EZ-Api/ez-api.git
synced 2026-01-13 17:47:51 +00:00
chore(test): clean up unused code and fix test helper usage
- Update TestBatchBindings_Status to use newTestHandlerWithRedis helper - Remove unused jsonID helper function from sync_bindings_spec_test.go - Add time import to models.go
This commit is contained in:
@@ -202,7 +202,7 @@ func TestBatchModels_Delete(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestBatchBindings_Status(t *testing.T) {
|
||||
h, db := newTestHandler(t)
|
||||
h, db, _ := newTestHandlerWithRedis(t)
|
||||
|
||||
group := model.ProviderGroup{Name: "default", Type: "openai", BaseURL: "https://api.openai.com/v1", Models: "m1", Status: "active"}
|
||||
if err := db.Create(&group).Error; err != nil {
|
||||
|
||||
Reference in New Issue
Block a user