|
4 | 4 | "bytes" |
5 | 5 | "testing" |
6 | 6 |
|
7 | | - "github.com/cli/cli/context" |
| 7 | + "github.com/cli/cli/internal/config" |
8 | 8 | ) |
9 | 9 |
|
10 | 10 | func TestConfigGet(t *testing.T) { |
@@ -50,7 +50,7 @@ func TestConfigSet(t *testing.T) { |
50 | 50 | initBlankContext("", "OWNER/REPO", "master") |
51 | 51 |
|
52 | 52 | buf := bytes.NewBufferString("") |
53 | | - defer context.StubWriteConfig(buf)() |
| 53 | + defer config.StubWriteConfig(buf)() |
54 | 54 | output, err := RunCommand(configSetCmd, "config set editor ed") |
55 | 55 | if err != nil { |
56 | 56 | t.Fatalf("error running command `config set editor ed`: %v", err) |
@@ -80,7 +80,7 @@ editor: ed |
80 | 80 | initBlankContext(cfg, "OWNER/REPO", "master") |
81 | 81 |
|
82 | 82 | buf := bytes.NewBufferString("") |
83 | | - defer context.StubWriteConfig(buf)() |
| 83 | + defer config.StubWriteConfig(buf)() |
84 | 84 |
|
85 | 85 | output, err := RunCommand(configSetCmd, "config set editor vim") |
86 | 86 | if err != nil { |
@@ -122,7 +122,7 @@ func TestConfigSetHost(t *testing.T) { |
122 | 122 | initBlankContext("", "OWNER/REPO", "master") |
123 | 123 |
|
124 | 124 | buf := bytes.NewBufferString("") |
125 | | - defer context.StubWriteConfig(buf)() |
| 125 | + defer config.StubWriteConfig(buf)() |
126 | 126 | output, err := RunCommand(configSetCmd, "config set -hgithub.com git_protocol ssh") |
127 | 127 | if err != nil { |
128 | 128 | t.Fatalf("error running command `config set editor ed`: %v", err) |
@@ -152,7 +152,7 @@ hosts: |
152 | 152 | initBlankContext(cfg, "OWNER/REPO", "master") |
153 | 153 |
|
154 | 154 | buf := bytes.NewBufferString("") |
155 | | - defer context.StubWriteConfig(buf)() |
| 155 | + defer config.StubWriteConfig(buf)() |
156 | 156 |
|
157 | 157 | output, err := RunCommand(configSetCmd, "config set -hgithub.com git_protocol https") |
158 | 158 | if err != nil { |
|
0 commit comments