Removed things we don't need from TestTemplates

This commit is contained in:
Patrick O'brien 2016-04-03 16:08:02 +10:00
parent dd5d643d4f
commit f76022c1f6

View file

@ -2,7 +2,6 @@ package cmds
import (
"bytes"
"fmt"
"io/ioutil"
"os"
"os/exec"
@ -76,15 +75,6 @@ func TestTemplates(t *testing.T) {
t.Errorf("Unable to run SQLBoilerRun: %s", err)
}
tplFile := cmdData.OutFolder + "/templates_test.go"
tplTestHandle, err := os.Create(tplFile)
if err != nil {
t.Errorf("Unable to create %s: %s", tplFile, err)
}
defer tplTestHandle.Close()
fmt.Fprintf(tplTestHandle, "package %s\n", cmdData.PkgName)
buf := bytes.Buffer{}
buf2 := bytes.Buffer{}