github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/engine/user_config_test.go (about) 1 // Copyright 2015 Keybase, Inc. All rights reserved. Use of 2 // this source code is governed by the included BSD license. 3 4 package engine 5 6 import ( 7 "testing" 8 ) 9 10 func TestSetPrimaryPictureSource(t *testing.T) { 11 tc := SetupEngineTest(t, "user config") 12 defer tc.Cleanup() 13 CreateAndSignupFakeUser(tc, "cfg") 14 15 // TODO Setup pictures with multiple sources 16 17 m := NewMetaContextForTestWithLogUI(tc) 18 eng := NewUserConfigEngine(tc.G, &UserConfigEngineArg{ 19 Key: "picture.source", 20 Value: "github", 21 }) 22 err := RunEngine2(m, eng) 23 if err != nil { 24 t.Fatal(err) 25 } 26 27 // TODO Check that the primary picture source was changed 28 }