forked from mirror/cobra
parent
99838a52fe
commit
3da102d464
|
@ -23,7 +23,11 @@ func TestGoldenAddCmd(t *testing.T) {
|
||||||
initializeProject(project)
|
initializeProject(project)
|
||||||
defer os.RemoveAll(project.AbsPath())
|
defer os.RemoveAll(project.AbsPath())
|
||||||
|
|
||||||
viper.Set("year", 2017) // For reproducible builds.
|
viper.Set("author", "NAME HERE <EMAIL ADDRESS>")
|
||||||
|
viper.Set("license", "apache")
|
||||||
|
viper.Set("year", 2017)
|
||||||
|
defer viper.Set("author", nil)
|
||||||
|
defer viper.Set("license", nil)
|
||||||
defer viper.Set("year", nil)
|
defer viper.Set("year", nil)
|
||||||
|
|
||||||
// Then add the "test" command.
|
// Then add the "test" command.
|
||||||
|
|
|
@ -19,7 +19,11 @@ func TestGoldenInitCmd(t *testing.T) {
|
||||||
project := NewProject(projectName)
|
project := NewProject(projectName)
|
||||||
defer os.RemoveAll(project.AbsPath())
|
defer os.RemoveAll(project.AbsPath())
|
||||||
|
|
||||||
viper.Set("year", 2017) // For reproducible builds.
|
viper.Set("author", "NAME HERE <EMAIL ADDRESS>")
|
||||||
|
viper.Set("license", "apache")
|
||||||
|
viper.Set("year", 2017)
|
||||||
|
defer viper.Set("author", nil)
|
||||||
|
defer viper.Set("license", nil)
|
||||||
defer viper.Set("year", nil)
|
defer viper.Set("year", nil)
|
||||||
|
|
||||||
os.Args = []string{"cobra", "init", projectName}
|
os.Args = []string{"cobra", "init", projectName}
|
||||||
|
|
Loading…
Reference in New Issue