mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 10:26:53 +02:00
add chat and generate tests with mock runner
This commit is contained in:
parent
64039df6d7
commit
4a565cbf94
6 changed files with 679 additions and 14 deletions
|
@ -7,11 +7,14 @@ import (
|
|||
"slices"
|
||||
"testing"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/ollama/ollama/api"
|
||||
"github.com/ollama/ollama/envconfig"
|
||||
)
|
||||
|
||||
func TestList(t *testing.T) {
|
||||
gin.SetMode(gin.TestMode)
|
||||
|
||||
t.Setenv("OLLAMA_MODELS", t.TempDir())
|
||||
envconfig.LoadConfig()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue