refactor: rename debugtalk_gen.py to .debugtalk_gen.py

This commit is contained in:
debugtalk
2022-05-29 00:50:20 +08:00
parent da608db9bb
commit 3d17bcecdf
11 changed files with 90 additions and 16 deletions

View File

@@ -32,7 +32,7 @@ const (
const (
genDebugTalkGo = "debugtalk_gen.go"
genDebugTalkPy = "debugtalk_gen.py"
genDebugTalkPy = ".debugtalk_gen.py"
)
//go:embed templates/debugtalkPythonTemplate

View File

@@ -15,13 +15,13 @@ func TestRun(t *testing.T) {
t.Fatal()
}
genDebugTalkPy := "../scaffold/templates/plugin/debugtalk_gen.py"
err = Run("../scaffold/templates/plugin/debugtalk.py", genDebugTalkPy)
genDebugTalkPyPath := "../scaffold/templates/plugin/" + genDebugTalkPy
err = Run("../scaffold/templates/plugin/debugtalk.py", genDebugTalkPyPath)
if !assert.Nil(t, err) {
t.Fatal()
}
contentBytes, err := builtin.ReadFile(genDebugTalkPy)
contentBytes, err := builtin.ReadFile(genDebugTalkPyPath)
if !assert.Nil(t, err) {
t.Fatal()
}