ollama source for Momentry Core verification
This commit is contained in:
11
envconfig/test_home_test.go
Normal file
11
envconfig/test_home_test.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package envconfig
|
||||
|
||||
import "testing"
|
||||
|
||||
func setTestHome(t *testing.T, home string) {
|
||||
t.Helper()
|
||||
t.Setenv("HOME", home)
|
||||
t.Setenv("USERPROFILE", home)
|
||||
t.Setenv("OLLAMA_MODELS", "")
|
||||
ReloadServerConfig()
|
||||
}
|
||||
Reference in New Issue
Block a user